/usr/lib/python2.6/site-packages/keystoneauth1/loading
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/loading/base.pyc (4607B)
Ñò
DVc
@ s˘ d d k Z d d k Z d d k Z d d k l Z d Z d d d d d d g Z d
Z d Z d Z d
Z
e i e i d e
f d Y Z d S( i˙˙˙˙N( t
exceptionss keystoneauth1.plugint get_available_plugin_namest get_available_plugin_loaderst get_plugin_loadert get_plugin_optionst
BaseLoadert PLUGIN_NAMESPACEc C s" t i d t } t | i S( sö Get the names of all the plugins that are available on the system.
This is particularly useful for help and error text to prompt a user for
example what plugins they may specify.
:returns: A list of names.
:rtype: frozenset
t namespace( t stevedoret ExtensionManagerR t frozensett names( t mgr( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR s c C s4 t i d t d t d t } t | i d S( s½ Retrieve all the plugin classes available on the system.
:returns: A dict with plugin entrypoint name as the key and the plugin
loader as the value.
:rtype: dict
R t invoke_on_loadt propagate_map_exceptionsc S s | i i | i f S( ( t entry_pointt namet obj( t ext( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyt
7 s ( R R R t Truet dictt map( R ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR , s c
C sN y" t i d t d t d | } Wn" t j
o t i | n X| i S( sT Retrieve a plugin class by its entrypoint name.
:param str name: The name of the object to get.
:returns: An auth plugin class.
:rtype: :py:class:`keystoneauth1.loading.BaseLoader`
:raises keystonauth.exceptions.NoMatchingPlugin: if a plugin cannot be
created.
R R
R ( R t
DriverManagerR R t RuntimeErrorR t NoMatchingPlugint driver( R R ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR : s
c C s t | i S( s^ Get the options for a specific plugin.
This will be the list of options that is registered and loaded by the
specified plugin.
:returns: A list of :py:class:`keystoneauth1.loading.Opt` options.
:raises keystonauth.exceptions.NoMatchingPlugin: if a plugin cannot be
created.
( R t get_options( R ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR O s c B s5 e Z e i d Z e i d Z d Z RS( c C s
t d S( N( t NotImplemented( t self( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyt plugin_class` s c C s g S( s Return the list of parameters associated with the auth plugin.
This list may be used to generate CLI or config arguments.
:returns: A list of Param objects describing available plugin
parameters.
:rtype: list
( ( R ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR d s
c K su g } | i D]4 } | i o$ | i | i d j o | | q q ~ } | o t i | n | i | S( s Create a plugin from the arguments retrieved from get_options.
A client can override this function to do argument validation or to
handle differences between the registered options and what is required
to create the plugin.
N( R t requiredt gett destt NoneR t MissingRequiredOptionsR ( R t kwargst _[1]t ot missing_required( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyt load_from_optionsp s
7( t __name__t
__module__t abct abstractpropertyR t abstractmethodR R( ( ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyR ] s ( R+ t sixR t
keystoneauth1R R t __all__R R R R t
add_metaclasst ABCMetat objectR ( ( ( sA /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/base.pyt
s