403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/__pycache__/sdb.cpython-310.pyc
o

;j��@s<dZddlZddiZdd�Zdd�Zdd	�Z	ddd
�ZdS)zD
Runner for setting and querying data via the sdb API on the master
�N�set_�setcC�tjj�|tt�S)a
    Get a value from a db, using a uri in the form of sdb://<profile>/<key>. If
    the uri provided does not start with sdb://, then it will be returned as-is.

    CLI Example:

    .. code-block:: bash

        salt-run sdb.get sdb://mymemcached/foo
    )�salt�utils�sdbZsdb_get�__opts__�	__utils__��uri�r�D/opt/saltstack/salt/lib/python3.10/site-packages/salt/runners/sdb.py�getsrcCstjj�||tt�S)a'
    Set a value in a db, using a uri in the form of ``sdb://<profile>/<key>``.
    If the uri provided does not start with ``sdb://`` or the value is not
    successfully set, return ``False``.

    CLI Example:

    .. code-block:: bash

        salt-run sdb.set sdb://mymemcached/foo bar
    )rrrZsdb_setrr	)r�valuerrr
rscCr)a/
    Delete a value from a db, using a uri in the form of ``sdb://<profile>/<key>``.
    If the uri provided does not start with ``sdb://`` or the value is not
    successfully deleted, return ``False``.

    CLI Example:

    .. code-block:: bash

        salt-run sdb.delete sdb://mymemcached/foo
    )rrrZ
sdb_deleterr	r
rrr
�delete)sr��2abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)cCstjj�|t||t�S)a�
    Perform a one-time generation of a hash and write it to sdb.
    If that value has already been set return the value instead.

    This is useful for generating passwords or keys that are specific to
    multiple minions that need to be stored somewhere centrally.

    CLI Example:

    .. code-block:: bash

        salt-run sdb.get_or_set_hash 'SECRET_KEY' 50

    .. warning::

        This function could return strings which may contain characters which are reserved
        as directives by the YAML parser, such as strings beginning with ``%``. To avoid
        issues when using the output of this function in an SLS file containing YAML+Jinja,
        surround the call with single quotes.
    )rrrZsdb_get_or_set_hashrr	)r�length�charsrrr
�get_or_set_hash8sr)rr)�__doc__Zsalt.utils.sdbrZ__func_alias__rrrrrrrr
�<module>s��

Youez - 2016 - github.com/yon3zu
LinuXploit