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: object

Command taking a container or CID as parameter

patch_parser_container(parser)[source]
resolve_cid(cid)[source]
take_action_container(parsed_args)[source]
class oio.cli.container.container.ContainersCommandMixin[source]

Bases: object

Command 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, cliff.lister.Lister

Create 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, cliff.command.Command

Delete 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.

class oio.cli.container.container.FlushContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.ContainerCommandMixin, cliff.command.Command

Flush 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.

class oio.cli.container.container.ListContainer(app, app_args, cmd_name=None)[source]

Bases: cliff.lister.Lister

List 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, cliff.show.ShowOne

Locate 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, cliff.command.Command

Purge 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.

class oio.cli.container.container.RefreshContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.ContainerCommandMixin, cliff.command.Command

Refresh 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.

class oio.cli.container.container.SaveContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.ContainerCommandMixin, cliff.command.Command

Save 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.

class oio.cli.container.container.SetContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.SetPropertyCommandMixin, oio.cli.container.container.ContainerCommandMixin, cliff.command.Command

Set 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.

class oio.cli.container.container.SetPropertyCommandMixin[source]

Bases: object

Command setting quota, storage policy or generic property

patch_parser(parser)[source]
class oio.cli.container.container.ShowContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.ContainerCommandMixin, cliff.show.ShowOne

Display 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, cliff.lister.Lister

Take 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 not replicated, and 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, cliff.command.Command

Touch 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.

class oio.cli.container.container.UnsetContainer(app, app_args, cmd_name=None)[source]

Bases: oio.cli.container.container.ContainerCommandMixin, cliff.command.Command

Unset 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.

Module contents