Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
µEYc@s™ddlZddlZddlZddlmZdZdZd
„Zd„Zd„Z	d
„Z
d„Zejej
ƒdefd„ƒYƒZdS(iÿÿÿÿN(t
exceptionsskeystoneauth1.plugintget_available_plugin_namestget_available_plugin_loaderstget_plugin_loadertget_plugin_optionst
BaseLoadertPLUGIN_NAMESPACEcCs
|jjS(s<Read the value of available for whether to load this plugin.(tobjt	available(text((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyt_auth_plugin_availablesc	Cs4tjdtdtdtdtƒ}t|jƒƒ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	namespacet
check_functinvoke_on_loadtpropagate_map_exceptions(t	stevedoretEnabledExtensionManagerRR
tTruet	frozensettnames(tmgr((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyR$s
		c	Cs:tjdtdtdtdtƒ}t|jd„ƒƒ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
    RRR
RcSs|jj|jfS(N(tentry_pointtnameR(R	((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyt<lambda>@s(RRRR
Rtdicttmap(R((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyR4s
	cCsLy"tjdtdtd|ƒ}Wn tk
rDtj|ƒ‚nX|jS(s3Retrieve 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 keystoneauth1.exceptions.auth_plugins.NoMatchingPlugin:
        if a plugin cannot be created.
    RR
R(Rt
DriverManagerRRtRuntimeErrorRtNoMatchingPlugintdriver(RR((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyRCs

cCst|ƒjƒ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 keystoneauth1.exceptions.auth_plugins.NoMatchingPlugin:
        if a plugin cannot be created.
    (Rtget_options(R((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyRXscBsSeZed„ƒZd„Zejd„ƒZed„ƒZd„Z	d„Z
RS(cCs
tƒ‚dS(N(tNotImplementedError(tself((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pytplugin_classiscKs
|j|S(sCreate a plugin from the options available for the loader.

        Given the options that were specified by the loader create an
        appropriate plugin. You can override this function in your loader.

        This used to be specified by providing the plugin_class property and
        this is still supported, however specifying a property didn't let you
        choose a plugin type based upon the options that were presented.

        Override this function if you wish to return different plugins based on
        the options presented, otherwise you can simply provide the
        plugin_class property.

        Added 2.9
        (R!(R tkwargs((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyt
create_pluginmscCsgS(sReturn 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 ((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyRs
cCstS(s+Return if the plugin is available for loading.

        If a plugin is missing dependencies or for some other reason should not
        be available to the current system it should override this property and
        return False to exclude itself from the plugin list.

        :rtype: bool
        (R(R ((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyR‹s
cKseg|jƒD]-}|jr
|j|jƒdkr
|^q
}|rXtj|ƒ‚n|j|S(sCreate 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(RtrequiredtgettdesttNoneRtMissingRequiredOptionsR#(R R"totmissing_required((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pytload_from_options—s
-cskx[‡fd†|jƒDƒD]=}||ƒ}|dk	rM|j|ƒ}n|ˆ|j<qW|jˆS(sKLoad a plugin from getter function that returns appropriate values.

        To handle cases other than the provided CONF and CLI loading you can
        specify a custom loader function that will be queried for the option
        value.
        The getter is a function that takes a
        :py:class:`keystoneauth1.loading.Opt` and returns a value to load with.

        :param getter: A function that returns a value for the given opt.
        :type getter: callable

        :returns: An authentication Plugin.
        :rtype: :py:class:`keystoneauth1.plugin.BaseAuthPlugin`
        c3s$|]}|jˆkr|VqdS(N(R&(t.0R)(R"(sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pys	<genexpr>µsN(RR'ttypeR&R+(R tgetterR"topttval((R"sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pytload_from_options_getter¦s#(t__name__t
__module__tpropertyR!R#tabctabstractmethodRRR+R1(((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyRfs		(sget_available_plugin_namessget_available_plugin_loaderssget_plugin_loadersget_plugin_optionss
BaseLoadersPLUGIN_NAMESPACE(R5tsixRt
keystoneauth1RRt__all__R
RRRRt
add_metaclasstABCMetatobjectR(((sO/home/tvault/.virtenv/lib/python2.7/site-packages/keystoneauth1/loading/base.pyt<module>
s"