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.
ClusterFlush
(app, app_args, cmd_name=None)[source] Bases:
cliff.command.Command
Flush all services of the cluster
-
get_parser
(prog_name)[source] Return an
argparse.ArgumentParser
.
-
log
= <logging.Logger object>
-
take_action
(parsed_args)[source] Override to do something useful.
-
-
class
oio.cli.cluster.cluster.
ClusterList
(app, app_args, cmd_name=None)[source] Bases:
cliff.lister.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:
cliff.lister.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 score
-
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:
cliff.show.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:
cliff.show.ShowOne
Show information of all services in 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:
cliff.lister.Lister
Unlock score
-
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:
cliff.lister.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:
cliff.lister.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:
cliff.show.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.
-