The karbor.utils Module

Utilities and helper functions.

karbor.utils.check_filters(filters)
karbor.utils.find_config(config_path)

Find a configuration file using the given hint.

Parameters:config_path – Full or relative path to the config.
Returns:Full path of the config, if it exists.
Raises:karbor.exception.ConfigNotFound
karbor.utils.get_auth_uri(v3=True)
karbor.utils.get_bool_param(param_string, params)
karbor.utils.is_valid_boolstr(val)

Check if the provided string is a valid bool string or not.

karbor.utils.load_class(namespace, plugin_name)
karbor.utils.load_plugin(namespace, plugin_name, *args, **kwargs)
karbor.utils.remove_invalid_filter_options(context, filters, allowed_search_options)

Remove search options that are not valid for non-admin API/context.

karbor.utils.service_is_up(service)

Check whether a service is up based on last heartbeat.