oio.cli.container package
Submodules
oio.cli.container.client module
-
oio.cli.container.client.make_client(instance)[source]
oio.cli.container.container module
Container-related commands
-
class
oio.cli.container.container.ContainerCommandMixin[source] Bases:
objectCommand taking a container or CID as parameter
-
patch_parser_container(parser)[source]
-
take_action_container(parsed_args)[source]
-
-
class
oio.cli.container.container.ContainersCommandMixin[source] Bases:
objectCommand taking some containers or CIDs as parameter
-
patch_parser_container(parser)[source]
-
-
class
oio.cli.container.container.CreateContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.SetPropertyCommandMixin,oio.cli.ListerCreate an object container.
-
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.container.container.DeleteContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainersCommandMixin,oio.cli.CommandDelete an object container.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.FlushContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandFlush an object container.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.ListBuckets(app, app_args, cmd_name=None)[source] Bases:
oio.cli.ListerGet the list of buckets owned by an account.
-
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.container.container.ListContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.ListerList containers.
-
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.container.container.LocateContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.ShowOneLocate the services in charge of a container.
-
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.container.container.PurgeContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandPurge exceeding object versions.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.RefreshContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandRefresh counters of an account (triggers asynchronous treatments)
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.SaveContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandSave all objects of a container locally.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.SetBucket(app, app_args, cmd_name=None)[source] Bases:
oio.cli.ShowOneSet metadata on a bucket.
-
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.container.container.SetContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.SetPropertyCommandMixin,oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandSet container properties, quota, storage policy, status or versioning.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.SetPropertyCommandMixin[source] Bases:
objectCommand setting quota, storage policy or generic property
-
patch_parser(parser)[source]
-
-
class
oio.cli.container.container.ShowBucket(app, app_args, cmd_name=None)[source] Bases:
oio.cli.ShowOneDisplay information about a bucket.
-
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.container.container.ShowContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.ShowOneDisplay information about an object container.
-
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.container.container.SnapshotContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.ListerTake a snapshot of a container.
Create a separate database containing all information about the contents from the original database, but with copies of the chunks at the time of the snapshot. This new database is frozen (you cannot write into it).
Pay attention to the fact that the source container is frozen during the snapshot capture. The capture may take some time, depending on the number of objects hosted by the container.
-
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.container.container.TouchContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainersCommandMixin,oio.cli.CommandTouch an object container, triggers asynchronous treatments on it.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-
-
class
oio.cli.container.container.UnsetContainer(app, app_args, cmd_name=None)[source] Bases:
oio.cli.container.container.ContainerCommandMixin,oio.cli.CommandUnset container properties.
-
get_parser(prog_name)[source] Return an
argparse.ArgumentParser.
-
log= <logging.Logger object>
-
take_action(parsed_args)[source] Override to do something useful.
The returned value will be returned by the program.
-