oio.cli.cluster package

Submodules

oio.cli.cluster.client module

oio.cli.cluster.client.make_client(instance)[source]

oio.cli.cluster.cluster module

class oio.cli.cluster.cluster.ClusterDeregister(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Deregister specific services of the cluster.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterFlush(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Deregister all services of the cluster.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterList(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

List services of the namespace.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterLocalList(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

List local services.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterLock(app, app_args, cmd_name=None)[source]

Bases: oio.cli.cluster.cluster.ClusterUnlock

Lock the score of a service.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterResolve(app, app_args, cmd_name=None)[source]

Bases: oio.cli.ShowOne

Resolve a service ID to an IP address and port.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class oio.cli.cluster.cluster.ClusterShow(app, app_args, cmd_name=None)[source]

Bases: oio.cli.ShowOne

Show general information about the cluster.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class oio.cli.cluster.cluster.ClusterUnlock(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Unlock the score of specific services of the cluster.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterUnlockAll(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Unlock all services of the cluster.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.ClusterWait(app, app_args, cmd_name=None)[source]

Bases: oio.cli.Lister

Wait for services to get a score above specified value.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class oio.cli.cluster.cluster.LocalNSConf(app, app_args, cmd_name=None)[source]

Bases: oio.cli.ShowOne

Show namespace configuration values locally configured.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <logging.Logger object>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

Module contents