/usr/lib/python2.6/site-packages/cinderclient/openstack/common/apiclient
NameSizeModeActions
auth.py70380644editdlrm
auth.pyc87270644editdlrm
base.py159280644editdlrm
base.pyc200660644editdlrm
client.py127320644editdlrm
client.pyc127530644editdlrm
exceptions.py119130644editdlrm
exceptions.pyc197950644editdlrm
fake_client.py58520644editdlrm
fake_client.pyc61740644editdlrm
__init__.py00644editdlrm
__init__.pyc1800644editdlrm
Edit: /usr/lib/python2.6/site-packages/cinderclient/openstack/common/apiclient/auth.pyc (8727B)
Ñò =vVc @s¦ddkZddkZddkZddkZddklZddklZhad„Z d„Z d„Z d„Z ei eiƒdefd „ƒYƒZdS( iÿÿÿÿN(t extension(t exceptionscCs5had„}d}ti|ƒ}|i|ƒdS(sgDiscover the available auth-systems. This won't take into account the old style auth-systems. cSs|it|iys (Rtdictt opt_namestopts(tselfRR-((R-sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyt__init__wscCs|iddƒ}d|iƒ}tii|dƒ}d|}|id|dd|d |d |ƒ|id |dd|d tiƒd S( seAdd an option to parser in two variants. :param opt: option name (with underscores) t_t-sOS_%stsDefaults to env[%s].s--os-%stmetavars<%s>tdefaultthelps--os_%sN(treplacetuppertostenvironR+t add_argumenttargparsetSUPPRESS(Rtoptt dashed_opttenv_vart arg_defaulttarg_help((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyt_parser_add_opt|s     cCs<x5|iD]*}|tijo|i||ƒq q WdS(s>Populate the parser with the options for this plugin. N(R/Rtcommon_opt_namesRE(tclsRR@((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRs cCs(x!|iD]}|i||ƒq WdS(s9Add options that are common for several plugins. N(RFRE(RGRR@((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRšs cCs|t|d|dƒfS(s‹Return option name and value. :param opt_name: name of the option, e.g., "username" :param args: parsed arguments sos_%sN(tgetattrtNone(topt_nameR#((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pytget_opt¡scs0ˆiit‡‡fd†ˆiDƒƒƒdS(sÑParse the actual auth-system options if any. This method is expected to populate the attribute `self.opts` with a dict containing the options and values needed to make authentication. c3s%x|]}ˆi|ˆƒVqWdS(N(RK(R,RJ(R1R#(sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pys °s N(R0tupdateR.R/(R1R#((R1R#sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRªscCs|iƒ|i|ƒdS(s-Authenticate using plugin defined method. The method usually analyses `self.opts` and performs a request to authentication server. :param http_client: client object that needs authentication :type http_client: HTTPClient :raises: AuthorizationFailure N(Rt_do_authenticate(R1t http_client((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyt authenticate³s cCsdS(s-Protected method for authentication. N((R1RN((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRMÀscCsYg}|iD]$}|ii|ƒp ||qq~}|oti|ƒ‚ndS(s^Check if all required options are present. :raises: AuthPluginOptionsMissing N(R/R0R+RR"(R1t_[1]R@tmissing((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRÅs  'cCsdS(sáReturn token and endpoint. :param service_type: Service type of the endpoint :type service_type: string :param endpoint_type: Type of endpoint. Possible values: public or publicURL, internal or internalURL, admin or adminURL :type endpoint_type: string :returns: tuple of token and endpoint strings :raises: EndpointException N((R1t endpoint_typet service_type((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyttoken_and_endpointÐsN(t__name__t __module__t__doc__RIRR/RFR2t staticmethodREt classmethodRRRKRROtabctabstractmethodRMRRT(((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyRds&     (RZR>R;Rt stevedoreRt'cinderclient.openstack.common.apiclientRRR RRR%t add_metaclasstABCMetatobjectR(((sY/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/openstack/common/apiclient/auth.pyts