oio.cli package
Subpackages
- oio.cli.account package
- oio.cli.admin package
- Subpackages
- Submodules
- oio.cli.admin.common module
- oio.cli.admin.item_check module
- oio.cli.admin.item_locate module
- oio.cli.admin.item_move module
- oio.cli.admin.item_rebuild module
- oio.cli.admin.item_repair module
- oio.cli.admin.item_vacuum module
- oio.cli.admin.service_check module
- oio.cli.admin.service_config module
- oio.cli.admin.service_decache module
- oio.cli.admin.service_info module
- oio.cli.admin.service_list module
- oio.cli.admin.service_rebuild module
- Module contents
- oio.cli.cluster package
- oio.cli.common package
- oio.cli.container package
- oio.cli.directory package
- oio.cli.election package
- oio.cli.events package
- oio.cli.lifecycle package
- oio.cli.object package
- oio.cli.rdir package
- oio.cli.reference package
- oio.cli.volume package
- oio.cli.zk package
Submodules
oio.cli.clientmanager module
-
class
oio.cli.clientmanager.ClientManager(*args, **kwargs)[source]
Module contents
-
class
oio.cli.Command(app, app_args, cmd_name=None)[source] Bases:
cliff.command.CommandWraps cliff’s command.Command and sets the process’ return code according to the class’ “success” field.
-
run(parsed_args)[source] Invoked by the application when the command is run.
Developers implementing commands should override
take_action().Developers creating new command base classes (such as
ListerandShowOne) should override this method to wraptake_action().Return the value returned by
take_action()or 0.
-
success= True
-
-
class
oio.cli.Lister(app, app_args, cmd_name=None)[source] Bases:
cliff.lister.ListerWraps cliff’s lister.Lister and sets the process’ return code according to the class’ “success” field.
-
run(parsed_args)[source] Invoked by the application when the command is run.
Developers implementing commands should override
take_action().Developers creating new command base classes (such as
ListerandShowOne) should override this method to wraptake_action().Return the value returned by
take_action()or 0.
-
success= True
-
-
class
oio.cli.ShowOne(app, app_args, cmd_name=None)[source] Bases:
cliff.show.ShowOneWraps cliff’s show.ShowOne and sets the process’ return code according to the class’ “success” field.
-
run(parsed_args)[source] Invoked by the application when the command is run.
Developers implementing commands should override
take_action().Developers creating new command base classes (such as
ListerandShowOne) should override this method to wraptake_action().Return the value returned by
take_action()or 0.
-
success= True
-
-
oio.cli.add_common_parser_options(parser)[source] Add optional parameters common to all openio CLIs to parser.
-
oio.cli.flat_dict_from_dict(parsed_args, dict_)[source] Create a dictionary without depth.
- {
- ‘depth0’: {
- ‘depth1’: {
- ‘depth2’: ‘test’
}
}
} => {
‘depth0.depth1.depth2’: ‘test’}
-
oio.cli.get_logger_from_args(args, default_conf=None)[source] Build a Logger instance from parsed args.
-
oio.cli.make_logger_args_parser()[source] Create an ArgumentParser for logger configuration.