crossbar.common.checkconfig

Functions

check_config(personality, config)

Check a Crossbar.io top-level configuration.

check_config_file(personality, configfile)

Check a Crossbar.io local configuration file.

check_dict_args(spec, config, msg)

Check the arguments of C{config} according to C{spec}.

check_guest(personality, guest)

Check a guest worker configuration.

convert_config_file(personality, configfile)

Converts a Crossbar.io configuration file from JSON to YAML or from

Module Contents

check_config(personality, config)[source]

Check a Crossbar.io top-level configuration.

http://crossbar.io/docs/ https://github.com/crossbario/crossbar/blob/master/docs/pages/administration/Node-Configuration.md

Parameters:

config (dict) – The configuration to check.

check_config_file(personality, configfile)[source]

Check a Crossbar.io local configuration file.

Parameters:

configfile (str) – The file to check.

check_dict_args(spec, config, msg)[source]

Check the arguments of C{config} according to C{spec}.

C{spec} is a dict, with the key mapping to the config and the value being a 2-tuple, for which the first item being whether or not it is mandatory, and the second being a list of types of which the config item can be.

check_guest(personality, guest)[source]

Check a guest worker configuration.

http://crossbar.io/docs/ https://github.com/crossbario/crossbar/blob/master/docs/pages/administration/worker/Guest-Configuration.md

convert_config_file(personality, configfile)[source]

Converts a Crossbar.io configuration file from JSON to YAML or from YAML to JSON.

Parameters:

configfile (str) – The Crossbar.io node configuration file to convert.