oio.cli.object package
Submodules
oio.cli.object.client module
-
oio.cli.object.client.
make_client
(instance)[source]
oio.cli.object.object module
-
class
oio.cli.object.object.
ContainerCommandMixin
[source] Bases:
object
Command taking a container name as parameter
-
flatns_manager
-
patch_parser
(parser)[source]
-
take_action
(parsed_args)[source]
-
-
class
oio.cli.object.object.
CreateObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ContainerCommandMixin
,oio.cli.Lister
Upload object
-
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.object.object.
DeleteObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ContainerCommandMixin
,oio.cli.Lister
Delete object from 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.object.object.
DrainObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ContainerCommandMixin
,oio.cli.Command
Remove all the chunks of a content but keep the properties. We can replace the data or the properties of the content but no action needing the removed chunks are accepted
-
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.object.object.
LinkObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.Command
Make a shallow copy of an object (similar to a hardlink).
-
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.object.object.
ListObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ContainerCommandMixin
,oio.cli.Lister
List objects in a 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.object.object.
LocateObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.Lister
Locate the parts of an object
-
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.object.object.
ObjectCommandMixin
[source] Bases:
oio.cli.object.object.ContainerCommandMixin
Command taking an object name as parameter
-
patch_parser
(parser)[source]
-
-
class
oio.cli.object.object.
PurgeObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,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.object.object.
SaveObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.Command
Save object 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.object.object.
SetObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.Command
Set object 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.
-
-
class
oio.cli.object.object.
ShowObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.ShowOne
Show information about an object
-
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.object.object.
TouchObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ContainerCommandMixin
,oio.cli.Command
Touch an object in a container, re-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.object.object.
UnsetObject
(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin
,oio.cli.Command
Unset object 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.
-