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]
-
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
,oio.cli.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
,oio.cli.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.
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.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.
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.Lister
Get 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.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
,oio.cli.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
,oio.cli.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.
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.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.
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.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.
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.ShowOne
Set 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.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.
The returned value will be returned by the program.
-
-
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.
ShowBucket
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.ShowOne
Display 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.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
,oio.cli.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 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.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.
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.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.
The returned value will be returned by the program.
-