/usr/lib/python2.6/site-packages/keystoneauth1/loading
NameSizeModeActions
_plugins/-0755rm
base.py39530644editdlrm
base.pyc46070644editdlrm
cli.py39900644editdlrm
cli.pyc36900644editdlrm
conf.py47770644editdlrm
conf.pyc41860644editdlrm
identity.py61480644editdlrm
identity.pyc66280644editdlrm
opts.py33080644editdlrm
opts.pyc33800644editdlrm
session.py101540644editdlrm
session.pyc94600644editdlrm
__init__.py21320644editdlrm
__init__.pyc13820644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/loading/session.pyc (9460B)
Ñò DVc@sàddkZddkZyddklZWnej o dZnXddklZddk l Z ddkl Z dddd d gZ d „Z d e ifd „ƒYZd„Zd„Zd„Zd„Zd„ZdS(iÿÿÿÿN(tcfg(t_utils(tbase(tsessiontregister_argparse_argumentstload_from_argparse_argumentstregister_conf_optionstload_from_conf_optionstget_conf_optionscCs|djodSyt|ƒ}Wn,tj o d|}ti|ƒ‚nX|djod|}ti|ƒ‚n|S(Ns%s must be a floatis%s must be greater than 0(tNonetfloatt ValueErrortargparsetArgumentTypeError(targument_valuetvaluetmsg((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyt_positive_non_zero_float!s    tSessioncBszeZed„ƒZd„Zeidƒed d d d d„ƒZ d„Z d„Z d d„Z d d„Z d„ZRS( cCstiS(N(RR(tself((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyt plugin_class1scCsgS(N((R((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyt get_options5sicKso|djo"|o t}q/|pt}n|o|o||f}ntt|ƒid|d||S(s Create a session with individual certificate parameters. Some parameters used to create a session don't lend themselves to be loaded from config/CLI etc. Create a session by converting those parameters into session __init__ parameters. tverifytcertN(R tFalsetTruetsuperRtload_from_options(RtinsecureRtcacertRtkeytkwargs((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyR8s  c CsÉ|iddtddddƒ|iddd dtiid ƒdd ƒ|id dd dtiidƒddƒ|iddddtiidƒddƒ|iddddtddddƒdS(Ns --insecuretdefaulttactiont store_truethelps¿Explicitly allow client to perform "insecure" TLS (https) requests. The server's certificate will not be verified against any certificate authorities. This option should be used with caution.s --os-cacerttmetavarst OS_CACERTsjSpecify a CA bundle file to use in verifying a TLS (https) server certificate. Defaults to env[OS_CACERT].s --os-certs tOS_CERTsDefaults to env[OS_CERT].s--os-keystOS_KEYsDefaults to env[OS_KEY].s --timeoutiXttypes s!Set request timeout (in seconds).(t add_argumentRtostenvirontgetR(Rtparser((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRUs*     cKsl|id|iƒ|id|iƒ|id|iƒ|id|iƒ|id|iƒ|i|S(NRRRRttimeout(t setdefaultRt os_cacerttos_certtos_keyR.R(Rt namespaceR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRvs c CsÝtptdƒ‚n|djo h}ntidd|idƒddƒtidd|idƒddƒtidd|idƒdd ƒtid d td|id ƒdd ƒtid d|id ƒddƒgS(sGet the oslo_config options that are needed for a :py:class:`.Session`. These may be useful without being registered for config file generation or to manipulate the options before registering them yourself. The options that are set are: :cafile: The certificate authority filename. :certfile: The client certificate file to present. :keyfile: The key for the client certificate. :insecure: Whether to ignore SSL verification. :timeout: The max time to wait for HTTP connections. :param dict deprecated_opts: Deprecated options that should be included in the definition of new options. This should be a dict from the name of the new option to a list of oslo.DeprecatedOpts that correspond to the new option. (optional) For example, to support the ``ca_file`` option pointing to the new ``cafile`` option name:: old_opt = oslo_cfg.DeprecatedOpt('ca_file', 'old_group') deprecated_opts={'cafile': [old_opt]} :returns: A list of oslo_config options. sœoslo.config is not an automatic dependency of keystoneauth. If you wish to use oslo.config you need to import it into your application's requirements file. tcafiletdeprecated_optsR#sJPEM encoded Certificate Authority to use when verifying HTTPs connections.tcertfiles(PEM encoded client certificate cert filetkeyfiles'PEM encoded client certificate key fileRR sVerify HTTPS connections.R.sTimeout value for http requestsN(Rt ImportErrorR tStrOptR,tBoolOptRtIntOpt(RR5((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRs(       cCs?|id|ƒ}|iti|ƒƒ|i|d|ƒ|S(syRegister the oslo_config options that are needed for a session. The options that are set are: :cafile: The certificate authority filename. :certfile: The client certificate file to present. :keyfile: The key for the client certificate. :insecure: Whether to ignore SSL verification. :timeout: The max time to wait for HTTP connections. :param oslo_config.Cfg conf: config object to register with. :param string group: The ini group to register options in. :param dict deprecated_opts: Deprecated options that should be included in the definition of new options. This should be a dict from the name of the new option to a list of oslo.DeprecatedOpts that correspond to the new option. (optional) For example, to support the ``ca_file`` option pointing to the new ``cafile`` option name:: old_opt = oslo_cfg.DeprecatedOpt('ca_file', 'old_group') deprecated_opts={'cafile': [old_opt]} :returns: The list of options that was registered. R5tgroup(Rtregister_groupRtOptGroupt register_opts(RtconfR<R5topts((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyR¶scKsv||}|id|iƒ|id|iƒ|id|iƒ|id|iƒ|id|iƒ|i|S(sßCreate a session object from an oslo_config object. The options must have been previously registered with register_conf_options. :param oslo_config.Cfg conf: config object to register with. :param string group: The ini group to register options in. :param dict kwargs: Additional parameters to pass to session construction. :returns: A new session object. :rtype: :py:class:`.Session` RRRRR.(R/RR4R6R7R.R(RR@R<Rtc((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRÔs N(t__name__t __module__tpropertyRRtutilst positionalRR RRRRRR(((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyR/s   ! 7 cOstƒi||ŽS(N(RR(targsR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRìscOstƒi||ŽS(N(RR(RHR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRðscOstƒi||ŽS(N(RR(RHR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRôscOstƒi||ŽS(N(RR(RHR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRøscOstƒi||ŽS(N(RR(RHR((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyRüs(R R*t oslo_configRR8R t keystoneauth1RRFtkeystoneauth1.loadingRRt__all__Rt BaseLoaderRRRRRR(((sD/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/loading/session.pyt s(     ½