Unmarshaling of options sent by the agent.
congress.cfg_validator.parsing.
IdentifiedOpt
(id_, ns_id, **kwargs)¶Bases: oslo_config.cfg.Opt
A subclass of option that adds a unique id and a namespace id
ids are based on hashes
congress.cfg_validator.parsing.
add_namespace
(conf, ns_dict, ns_hash)¶Add options from a kind to an already existing config
congress.cfg_validator.parsing.
add_parsed_conf
(conf, normalized)¶Add a normalized values container to a config manager.
conf – A cfg.ConfigOpts object.
normalized – A normalized values container, as introduced by oslo cfg._Namespace.
congress.cfg_validator.parsing.
construct_conf_manager
(namespaces)¶Construct a config manager from a list of namespaces data.
Register options of given namespaces into a cfg.ConfigOpts object. A namespaces dict is typically cfg_validator.generator output. Options are provided an hash as an extra field.
namespaces – A list of dict, containing options metadata.
A cfg.ConfigOpts.
congress.cfg_validator.parsing.
make_group
(name, title, help_msg)¶Declares a new group
name – group name
title – group title
help_msg – descriptive help message
an oslo config group representation or None for default.
congress.cfg_validator.parsing.
make_opt
(option, opt_hash, ns_hash)¶Declares a new group
name – an option retrieved from json.
opt_hash – the option hash
ns_hash – the hash of the namespace defining it.
an oslo config option representation augmented with the hashes.
congress.cfg_validator.parsing.
make_type
(type_descr)¶Declares a new type
type_descr – a type description read from json.
an oslo config type
congress.cfg_validator.parsing.
parse_config_file
(namespaces, path)¶Parse a config file from its pre-loaded namespaces.
namespaces – A list of dict, containing namespaces data.
path – Path to the configuration file to parse.
congress.cfg_validator.parsing.
parse_value
(cfgtype, value)¶Parse and validate a value’s type, raising error if check fails.
ValueError, TypeError
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.