%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/sdb/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyc

�
���^c@@s�dZddlmZmZmZddlZyddlZeZ	Wne
k
r]eZ	nXeje
�Zidd6ZdZd�Zddd�Zddd	�Zddd
�Zd�ZdS(u(
etcd Database Module

:maintainer:    SaltStack
:maturity:      New
:depends:       python-etcd
:platform:      all

.. versionadded:: 2015.5.0

This module allows access to the etcd database using an ``sdb://`` URI. This
package is located at ``https://pypi.python.org/pypi/python-etcd``.

Like all sdb modules, the etcd module requires a configuration profile to
be configured in either the minion or master configuration file. This profile
requires very little. In the example:

.. code-block:: yaml

    myetcd:
      driver: etcd
      etcd.host: 127.0.0.1
      etcd.port: 2379

The ``driver`` refers to the etcd module, ``etcd.host`` refers to the host that
is hosting the etcd database and ``etcd.port`` refers to the port on that host.

.. code-block:: yaml

    password: sdb://myetcd/mypassword

i(tabsolute_importtprint_functiontunicode_literalsNusetuset_uetcdcC@str
tStS(u6
    Only load the module if keyring is installed
    (tHAS_LIBSt__virtualname__tFalse(((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyt__virtual__6scC@s,t|�}|j||�t|||�S(u2
    Set a key/value pair in the etcd service
    (t	_get_conntsettget(tkeytvaluetservicetprofiletclient((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pytset_?scC@s"t|�}|j|�}|jS(u+
    Get a value from the etcd service
    (RR	R(R
RR
Rtresult((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyR	HscC@s:t|�}y|j|�tSWntk
r5tSXdS(u+
    Get a value from the etcd service
    N(RtdeletetTruet	ExceptionR(R
RR
R((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyRQs

cC@stjjj|�S(u
    Get a connection
    (tsalttutilst	etcd_utiltget_conn(R
((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyR]s(t__doc__t
__future__RRRtloggingtsalt.utils.etcd_utilRRRtImportErrorRt	getLoggert__name__tlogt__func_alias__RRtNoneRR	RR(((s4/usr/lib/python2.7/site-packages/salt/sdb/etcd_db.pyt<module>!s 



				

Zerion Mini Shell 1.0