%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/runners/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/runners/auth.pyo

�
���^c@@shdZddlmZmZmZddlZddlZddlZddl	Zd�Z
d�ZdS(uh
Authentication runner for creating, deleting, and managing eauth tokens.

.. versionadded:: 2016.11.0

i(tabsolute_importtprint_functiontunicode_literalsNcK@sRtjjt�}|j�s3tjjd��ntjjt�}|j	|�S(uh
    Create an eauth token using provided credentials

    Non-root users may specify an expiration date -- if allowed via the
    :conf_master:`token_expire_user_override` setting -- by passing an
    additional ``token_expire`` param. This overrides the
    :conf_master:`token_expire` setting of the same name in the Master config
    and is how long a token should live in seconds.

    CLI Example:

    .. code-block:: shell

        salt-run auth.mk_token username=saltdev password=saltdev eauth=auto

        # Create a token valid for three years.
        salt-run auth.mk_token username=saltdev password=saltdev eauth=auto \
            token_expire=94670856

        # Calculate the number of seconds using expr.
        salt-run auth.mk_token username=saltdev password=saltdev eauth=auto \
            token_expire=$(expr \( 365 \* 24 \* 60 \* 60 \) \* 3)
    uSalt Master must be running.(
tsalttnetapitNetapiClientt__opts__t_is_master_runningt
exceptionstSaltDaemonNotRunningtauthtResolvertmk_token(tloadRR
((s5/usr/lib/python2.7/site-packages/salt/runners/auth.pyRs	cC@sBtjjtd|�}tjj|�r>tj|�dkStS(u�
    Delete an eauth token by name

    CLI Example:

    .. code-block:: shell

        salt-run auth.del_token 6556760736e4077daa601baec2b67c24
    u	token_dirN(tostpathtjoinRtexiststremovetNonetFalse(ttokent
token_path((s5/usr/lib/python2.7/site-packages/salt/runners/auth.pyt	del_token5s
(t__doc__t
__future__RRRRt	salt.authRtsalt.exceptionstsalt.netapiRR(((s5/usr/lib/python2.7/site-packages/salt/runners/auth.pyt<module>s	"

Zerion Mini Shell 1.0