Repository URL to install this package:
Version:
3.4.50 ▾
|
ó ͍EYc @ s· d d l m Z d d l m Z d d l m Z y d d l m Z Wn e k r] d Z n Xd d l m Z d g Z d Z d d d d d d d d Z d d d Z d Z d S( iÿÿÿÿ( t cfg( t log( t key_manager( t barbican_key_manager( t utilss castellan=WARNsu %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user_identity)s] %(instance)s%(message)sc C s` | j t j d d t r8 | j t j d t j n | d k r] | j d | d d n t d k r\| d k r | j d | d t j n | d k r¹ | j d | d t j n | d k rá | j d | d t j n | d k r | j d | d t j n | d k r1| j d | d t j n | d k r\| j d | d t j q\n d S( sz Set defaults for configuration values. Overrides the default options values. :param conf: Config instance in which to set default options. :param api_class: The full class name of the key manager API class. :param barbican_endpoint: Use this endpoint to connect to Barbican. :param barbican_api_version: Version of the Barbican API. :param auth_endpoint: Use this endpoint to connect to Keystone. :param retry_delay: Use this attribute to set retry delay. :param number_of_retries: Use this attribute to set number of retries. :param verify_ssl: Use this to specify if ssl should be verified. t groupR t api_classt barbican_endpointt barbican_api_versiont auth_endpointt retry_delayt number_of_retriest verify_sslN( t register_optst kmt key_manager_optst bkmt barbican_optst BARBICAN_OPT_GROUPt Nonet set_default( t confR R R R R R R ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/castellan/options.pyt set_defaults! s0 t castellanc C s@ | p t j } t j | t j t t t j | | d S( N( R t CONFR t register_optionsR t _DEFAULT_LOGGING_CONTEXT_FORMATt _DEFAULT_LOG_LEVELSt setup( R t app_name( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/castellan/options.pyt enable_loggingL s c C sa g } | j t j | j t j d | f g } t d k r] | j t j t j f n | S( so Returns a list of oslo.config options available in the library. The returned list includes all oslo.config options which may be registered at runtime by the library. Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element will be registered. A group name of None corresponds to the [DEFAULT] group in config files. The purpose of this is to allow tools like the Oslo sample config file generator to discover the options exposed to users by this library. :returns: a list of (group_name, opts) tuples R N( t extendR R R t credential_optsR R t appendR R ( R t opts( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/castellan/options.pyt list_optsV s N( t oslo_configR t oslo_logR R R R t castellan.key_managerR R t ImportErrorR t castellan.commonR R R R R R# ( ( ( sF /home/tvault/.virtenv/lib/python2.7/site-packages/castellan/options.pyt <module> s )