The karbor.cmd.manage Module

CLI interface for karbor management.

class karbor.cmd.manage.ConfigCommands

Bases: object

Class for exposing the flags defined by flag_file(s).

list(param=None)

List parameters configured for karbor.

Lists all parameters configured for karbor unless an optional argument is specified. If the parameter is specified we only print the requested parameter. If the parameter is not found an appropriate error is produced by .get*().

class karbor.cmd.manage.DbCommands

Bases: object

Class for managing the database.

purge(age_in_days)

Purge deleted rows older than a given age from karbor tables.

sync(version=None)

Sync the database up to the most recent version.

version()

Print the current database version.

class karbor.cmd.manage.ServiceCommands

Bases: object

Methods for managing services.

list()

Show a list of all karbor services.

class karbor.cmd.manage.VersionCommands

Bases: object

Class for exposing the codebase version.

list()
karbor.cmd.manage.add_command_parsers(subparsers)
karbor.cmd.manage.args(*args, **kwargs)
karbor.cmd.manage.fetch_func_args(func)
karbor.cmd.manage.get_arg_string(args)
karbor.cmd.manage.main()

Parse options and call the appropriate class/method.

karbor.cmd.manage.methods_of(obj)

Return non-private methods from an object.

Get all callable methods of an object that don’t start with underscore :return: a list of tuples of the form (method_name, method)