Repository URL to install this package:
|
Version:
2.5 ▾
|
ó
µEYc @ s d d l m Z d d l m Z e j d d e j d g d d Z d Z e j d d e Z d 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 j t j 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 plugin 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( ( ( sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyR s c C sV y
| j } Wn t k
r/ t j | } n
X| } g | D] } | j ^ q@ S( sT 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.
:param plugin: The name of the plugin loader or a plugin loader object
:type plugin: str or keystoneauth1._loading.BaseLoader
:returns: A list of oslo_config options.
( t get_optionst AttributeErrorR t get_plugin_optionsR ( t plugint getterR t o( ( sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyR - s
c C sS | j t j d | | | j r6 | | j } n | j t j 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 ( ( sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyR B s
c s£ j r j n j } | s4 d St j | } | j } g | D] } | j ^ qV } j | d f d } | j | | 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 str group: The group name that options should be read from.
:returns: An authentication Plugin or None if a name is not provided
:rtype: :class:`keystoneauth1.plugin.BaseAuthPlugin`
:raises keystoneauth1.exceptions.auth_plugins.NoMatchingPlugin:
if a plugin cannot be created.
R c s | j S( N( t dest( t opt( R R ( sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyt _getter s N( R R t NoneR t get_plugin_loaderR R t
register_optst load_from_options_getter( R R t kwargst nameR t plugin_optsR t oslo_optsR ( ( R R sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyR
a s
N( s get_common_conf_optionss get_plugin_conf_optionss register_conf_optionss load_from_conf_options( t keystoneauth1.loadingR R t OptR t
_section_helpR
t __all__R R R R
( ( ( sO /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/conf.pyt <module>
s