bpo.config package

Submodules

bpo.config.args module

Default values are stored in bpo/config/const/args.py. After bpo.config.args.init() ran, all values are available in bpo.config.args (e.g. bpo.config.args.job_service).

bpo.config.args.init()
bpo.config.args.job_service_local(parser)
bpo.config.args.job_service_sourcehut(parser)

bpo.config.const.args module

Default values for command-line arguments. After pmb.config.init() ran, these can be accessed in bpo.config.args (e.g. bpo.config.args.job_service).

bpo.config.const.images module

bpo.config.const.images.get_ui_list(chassis, supports_gpu=True, exclude_ui=[], add_ui=[])

bpo.config.tokens module

bpo.config.tokens.hash_generate(token)

Generate a token and save the sha512 hash to the token file. :param token: name of the token, e.g. “push_hook_gitlab” :returns: hash of the generated token

bpo.config.tokens.init()

Load/generate all tokens.

bpo.config.tokens.load()

Load existing token file into ConfigParser() or prepare new one.

bpo.config.tokens.require(token)
Parameters:

token – name of the required token (e.g. “sourcehut”)

Module contents