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:
objectCommand 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.ListerUpload 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.ListerDelete 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.CommandRemove 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.CommandMake 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.ListerList 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.ListerLocate 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.ContainerCommandMixinCommand 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.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.object.object.SaveObject(app, app_args, cmd_name=None)[source] Bases:
oio.cli.object.object.ObjectCommandMixin,oio.cli.CommandSave 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.CommandSet 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.ShowOneShow 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.CommandTouch 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.CommandUnset 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.
-