/usr/lib/python2.6/site-packages/cinderclient
NameSizeModeActions
openstack/-0755rm
tests/-0755rm
v1/-0755rm
v2/-0755rm
auth_plugin.py45680644editdlrm
auth_plugin.pyc57410644editdlrm
base.py91040644editdlrm
base.pyc81320644editdlrm
client.py207000644editdlrm
client.pyc173680644editdlrm
exceptions.py50490644editdlrm
exceptions.pyc76630644editdlrm
extension.py14090644editdlrm
extension.pyc15300644editdlrm
service_catalog.py35020644editdlrm
service_catalog.pyc25820644editdlrm
shell.py373030644editdlrm
shell.pyc261080644editdlrm
utils.py82250644editdlrm
utils.pyc95060644editdlrm
version.py7260644editdlrm
version.pyc3310644editdlrm
__init__.py9360644editdlrm
__init__.pyc4260644editdlrm
Edit: /usr/lib/python2.6/site-packages/cinderclient/auth_plugin.pyc (5741B)
Ņō =vVc@sĪddkZddkZddkZddklZddklZeieƒZhZ d„Z d„Z d„Z de fd„ƒYZd e fd „ƒYZdS( iĸĸĸĸN(t exceptions(tutilscCsŒd}xti|ƒD]n}y|iƒ}WnHttitfj o0}tid|iƒti|ddƒqX|t |is  tBaseAuthPlugincBsAeZdZd„Zd„Zed„ƒZd„Zd„ZRS(s–Base class for authentication plugins. An authentication plugin needs to override at least the authenticate method to be a valid plugin. cCs h|_dS(N(topts(tself((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyt__init__MscCsdS(s,Return the auth url for the plugin (if any).N(R(R!((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyt get_auth_urlPscCs|S(sŊPopulate and return the parser with the options for this plugin. If the plugin does not need any options, it should return the same parser untouched. ((R((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyRTscCs|iS(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. If the dict is empty, the client should assume that it needs the same options as the 'keystone' auth system (i.e. os_username and os_password). Returns the self.opts dict. (R (R!targs((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyt parse_opts]s cCsti|iƒ‚dS(s)Authenticate using plugin defined method.N(RtAuthSystemNotFoundR(R!tclstauth_url((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyt authenticatejs( t__name__t __module__t__doc__R"R#t staticmethodRR%R)(((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyRGs    RcBs)eZdZd„Zd„Zd„ZRS(sClass to mimic the AuthPlugin class for deprecated auth systems. Old auth systems only define two entry points: openstack.client.auth_url and openstack.client.authenticate. This class will load those entry points into a class similar to a valid AuthPlugin. csD|ˆ_‡fd†}hˆ_d„ˆ_|ˆ_ˆiƒdS(Ncstiˆiƒ‚dS(N(RR&R(R'R((R!(sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyR)yscSsdS(N(R(((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyt~s(RR R#R)t_load_endpoints(R!RR)((R!sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyR"vs     cCshd}ti|d|iƒ}|o ||_nd}ti|d|iƒ}|o ||_ndS(Nsopenstack.client.auth_urlR sopenstack.client.authenticate(Rt_load_entry_pointRR#R)(R!R tfn((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyR/ƒs cCs|iS(N(R (R!R$((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyR%Žs(R*R+R,R"R/R%(((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyRos (tloggingRRt cinderclientRRt getLoggerR*R R RRRtobjectRR(((sE/tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/auth_plugin.pyts      (