/usr/lib/python2.6/site-packages/keystoneauth1/loading
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/loading/conf.pyc (4186B)
Ñò
DVc @ sœ d d k l Z d d k l Z e i d d e i d ƒ g d d ƒZ d Z e i d d e ƒZ d
d d d
g Z d „ Z d „ Z d „ Z
d „ Z d S( iÿÿÿÿ( t base( t optst auth_typet
deprecatedt auth_plugint helps Authentication type to loads9 Config Section from which to load plugin specific optionst auth_sectiont get_common_conf_optionst get_plugin_conf_optionst register_conf_optionst load_from_conf_optionsc C s t i ƒ t i ƒ g S( s— Get the oslo_config options common for all auth plugins.
These may be useful without being registered for config file generation
or to manipulate the options before registering them yourself.
The options that are set are:
:auth_type: The name of the pluign to load.
:auth_section: The config file section to load options from.
:returns: A list of oslo_config options.
( t _AUTH_TYPE_OPTt _to_oslo_optt _AUTH_SECTION_OPT( ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/conf.pyR s c C s. g } t i | ƒ D] } | | i ƒ q ~ S( sÍ Get the oslo_config options for a specific plugin.
This will be the list of config options that is registered and loaded by
the specified plugin.
:returns: A list of oslo_config options.
( R t get_plugin_optionsR ( t namet _[1]t o( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/conf.pyR - s c C sU | i t i ƒ d | ƒ| | i o | | i } n | i t i ƒ d | ƒd S( sÏ Register the oslo_config options that are needed for a plugin.
This only registers the basic options shared by all plugins. Options that
are specific to a plugin are loaded just before they are read.
The defined options are:
- auth_type: the name of the auth plugin that will be used for
authentication.
- auth_section: the group from which further auth plugin options should be
taken. If section is not provided then the auth plugin options will be
taken from the same group as provided in the parameters.
:param conf: config object to register with.
:type conf: oslo_config.cfg.ConfigOpts
:param string group: The ini group to register options in.
t groupN( t register_optR
R R R ( t confR ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/conf.pyR 8 s c K sï | | i o | | i } n | | i } | p d St i | ƒ } | i ƒ } g } | D] } | | i ƒ q^ ~ } | i | d | ƒxR | D]J } | | | i }
|
d j o | i |
ƒ }
n | i
| i |
ƒ q” W| i | S( sÌ Load a plugin from an oslo_config CONF object.
Each plugin will register their own required options and so there is no
standard list and the plugin should be consulted.
The base options should have been registered with register_conf_options
before this function is called.
:param conf: A conf object.
:type conf: oslo_config.cfg.ConfigOpts
:param string group: The group name that options should be read from.
:returns: An authentication Plugin or None if a name is not provided
:rtype: :py:class:`keystonauth.auth.BaseAuthPlugin`
:raises keystonauth.exceptions.NoMatchingPlugin: if a plugin cannot be
created.
R N( R R t NoneR t get_plugin_loadert get_optionsR t
register_optst destt typet
setdefaultt load_from_options( R R t kwargsR t plugint plugin_optsR R t oslo_optst optt val( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/conf.pyR
W s
'
N( t keystoneauth1.loadingR R t OptR t
_section_helpR
t __all__R R R R
( ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/conf.pyt
s