/usr/lib/python2.6/site-packages/keystoneauth1
NameSizeModeActions
access/-0755rm
exceptions/-0755rm
extras/-0755rm
fixture/-0755rm
hacking/-0755rm
identity/-0755rm
loading/-0755rm
tests/-0755rm
adapter.py82660644editdlrm
adapter.pyc89020644editdlrm
discover.py123720644editdlrm
discover.pyc120440644editdlrm
plugin.py78220644editdlrm
plugin.pyc83050644editdlrm
session.py305020644editdlrm
session.pyc263890644editdlrm
token_endpoint.py13630644editdlrm
token_endpoint.pyc14490644editdlrm
_utils.py71270644editdlrm
_utils.pyc80590644editdlrm
__init__.py00644editdlrm
__init__.pyc1480644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/adapter.pyc (8902B)
Ñò DVc@s@ddklZdefd„ƒYZdefd„ƒYZdS(iÿÿÿÿ(t_utilstAdapterc BsÅeZdZeiƒddddddddddd„ ƒZd„Zd„Zdd„Z dd„Z dd„Z dd„Z dd„Z d „Zd „Zd „Zd „Zd „Zd„ZRS(s&An instance of a session with local variables. A session is a global object that is shared around amongst many clients. It therefore contains state that is relevant to everyone. There is a lot of state such as the service type and region_name that are only relevant to a particular client that is using the session. An adapter provides a wrapper of client local data around the global session object. :param session: The session object to wrap. :type session: keystonauth.session.Session :param str service_type: The default service_type for URL discovery. :param str service_name: The default service_name for URL discovery. :param str interface: The default interface for URL discovery. :param str region_name: The default region_name for URL discovery. :param str endpoint_override: Always use this endpoint URL for requests for this client. :param tuple version: The version that this API targets. :param auth: An auth plugin to use instead of the session one. :type auth: keystonauth.auth.base.BaseAuthPlugin :param str user_agent: The User-Agent string to set. :param int connect_retries: the maximum number of retries that should be attempted for connection errors. Default None - use session default which is don't retry. :param logger: A logging object to use for requests that pass through this adapter. :type logger: logging.Logger c Csg||_||_||_||_||_||_||_| |_||_| |_ | |_ dS(N( tsessiont service_typet service_namet interfacet region_nametendpoint_overridetversiont user_agenttauthtconnect_retriestlogger( tselfRRRRRRRR R R R ((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyt__init__.s          cCs©|io|id|iƒn|io|id|iƒn|io|id|iƒn|io|id|iƒn|io|id|iƒndS(NRRRRR(Rt setdefaultRRRR(R tkwargs((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyt_set_endpoint_filter_kwargsAs     cKsà|idhƒ}|i|ƒ|io|id|iƒn|io|id|iƒn|io|id|iƒn|idj o|id|iƒn|io|id|iƒn|ii |||S(Ntendpoint_filterRR R R R ( RRRR R R tNoneR Rtrequest(R turltmethodRR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyRMs     cCs|ii|p|iƒS(s•Return a token as provided by the auth plugin. :param auth: The auth plugin to use for token. Overrides the plugin on the session. (optional) :type auth: :class:`keystonauth.auth.base.BaseAuthPlugin` :raises keystonauth.exceptions.AuthorizationFailure: if a new token fetch fails. :returns: A valid token. :rtype: string (Rt get_tokenR (R R ((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyR_s cKs<|io|iS|i|ƒ|ii|p|i|S(sÙGet an endpoint as provided by the auth plugin. :param auth: The auth plugin to use for token. Overrides the plugin on the session. (optional) :type auth: :class:`keystonauth.auth.base.BaseAuthPlugin` :raises keystonauth.exceptions.MissingAuthPlugin: if a plugin is not available. :returns: An endpoint if available or None. :rtype: string (RRRt get_endpointR (R R R((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyRns  cCs|ii|p|iƒS(s$Invalidate an authentication plugin.(Rt invalidateR (R R ((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyRscCs|ii|p|iƒS(s)Return the authenticated user_id as provided by the auth plugin. :param auth: The auth plugin to use for token. Overrides the plugin on the session. (optional) :type auth: keystonauth.auth.base.BaseAuthPlugin :raises keystonauth.exceptions.AuthorizationFailure: if a new token fetch fails. :raises keystonauth.exceptions.MissingAuthPlugin: if a plugin is not available. :returns: Current `user_id` or None if not supported by plugin. :rtype: string (Rt get_user_idR (R R ((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyR…scCs|ii|p|iƒS(s/Return the authenticated project_id as provided by the auth plugin. :param auth: The auth plugin to use for token. Overrides the plugin on the session. (optional) :type auth: keystonauth.auth.base.BaseAuthPlugin :raises keystonauth.exceptions.AuthorizationFailure: if a new token fetch fails. :raises keystonauth.exceptions.MissingAuthPlugin: if a plugin is not available. :returns: Current `project_id` or None if not supported by plugin. :rtype: string (Rtget_project_idR (R R ((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyR–scKs|i|d|S(NtGET(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytget§scKs|i|d|S(NtHEAD(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytheadªscKs|i|d|S(NtPOST(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytpost­scKs|i|d|S(NtPUT(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytput°scKs|i|d|S(NtPATCH(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytpatch³scKs|i|d|S(NtDELETE(R(R RR((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pytdelete¶sN(t__name__t __module__t__doc__tutilst positionalRRRRRRRRRRRR!R#R%R'(((s</tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/adapter.pyRs&              tLegacyJsonAdaptercBseZdZd„ZRS(sMake something that looks like an old HTTPClient. A common case when using an adapter is that we want an interface similar to the HTTPClients of old which returned the body as JSON as well. You probably don't want this if you are starting from scratch. cOs |idhƒ}|iddƒy|idƒ|d sª