%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@sdZddlmZmZmZddlZddlmZeje	�Z
defd��YZdefd��YZ
d	efd
��YZdefd��YZd
efd��YZdefd��YZdefd��YZdefd��YZdS(u�
Encapsulate the different transports available to Salt.

This includes client side transport, for the ReqServer and the Publisher
i(tabsolute_importtprint_functiontunicode_literalsN(tSyncWrappert
ReqChannelcB@sAeZdZed��Zdded�Zdddd�ZRS(uP
    Factory class to create a Sync communication channels to the ReqServer
    cK@sttj|f|�}|S(N(RtAsyncReqChanneltfactory(toptstkwargstsync((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyRsii<cC@s
t��dS(u,
        Send "load" to the master.
        N(tNotImplementedError(tselftloadttriesttimeouttraw((s9/usr/lib/python2.7/site-packages/salt/transport/client.pytsendscC@s
t��dS(u�
        Send "load" to the master in a way that the load is only readable by
        the minion and the master (not other minions etc.)
        N(R
(RRtdictkeyR
R((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyt!crypted_transfer_decode_dictentry"sN(	t__name__t
__module__t__doc__tstaticmethodRtFalseRtNoneR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyRstPushChannelcB@s,eZdZed��Zddd�ZRS(uM
    Factory class to create Sync channel for push side of push/pull IPC
    cK@sttj|f|�}|S(N(RtAsyncPushChannelR(RRR	((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR.sii<cC@s
t��dS(u+
        Send load across IPC push
        N(R
(RRR
R((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR3s(RRRRRR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR*stPullChannelcB@seZdZed��ZRS(uM
    Factory class to create Sync channel for pull side of push/pull IPC
    cK@sttj|f|�}|S(N(RtAsyncPullChannelR(RRR	((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR>s(RRRRR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR:stAsyncChannelcB@s&eZdZeZedd��ZRS(u7
    Parent class for Async communication channels
    i
cC@s0ddlm}|jdd|�t|_dS(Ni(tResolveru tornado.netutil.ThreadedResolvertnum_threads(ttornado.netutilRt	configuretTruet_resolver_configured(tclsRR((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyt_config_resolverPs
(RRRRR#tclassmethodR%(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyREsRcB@sAeZdZed��Zdded�Zdddd�ZRS(uQ
    Factory class to create a Async communication channels to the ReqServer
    cK@s6d}d|kr|d}n9d|jdi�jdi�krX|ddd}n|dkr�ddl}|jjj||�S|dkr�|js�tj�nddl}|jj	j
||�S|dkr�ddl}|jjj
||�S|dkr&ddl}|jjj||�Std	��dS(
Nuzeromqu	transportupillarumasteriutcpuraetulocalu:Channels are only defined for tcp, zeromq, raet, and local(tgettsalt.transport.zeromqt	transporttzeromqtAsyncZeroMQReqChannelR#RR%tsalt.transport.tcpttcptAsyncTCPReqChanneltsalt.transport.raettraettRAETReqChanneltsalt.transport.localtlocaltAsyncLocalChannelt	Exception(R$RRtttypetsalt((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR^s*
$	
ii<cC@s
t��dS(u,
        Send "load" to the master.
        N(R
(RRR
RR((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyRscC@s
t��dS(u�
        Send "load" to the master in a way that the load is only readable by
        the minion and the master (not other minions etc.)
        N(R
(RRRR
R((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�sN(	RRRR&RRRRR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyRZs!tAsyncPubChannelcB@s/eZdZed��Zd�Zd�ZRS(uQ
    Factory class to create subscription channels to the master's Publisher
    cK@s_d}d|kr|d}n9d|jdi�jdi�krX|ddd}n|dkr�t|d<tjd|�n|dkr�ddl}|jjj||�S|d	kr�|js�t	j
�nddl}|jjj
||�S|d
kr!ddl}|jjj||�S|dkrOddl}|jjj||�Std��dS(
Nuzeromqu	transportupillarumasterudetectudetect_modeu$Transport is set to detect; using %siutcpuraetulocalu:Channels are only defined for tcp, zeromq, raet, and local(R'R"tlogtinfoR(R)R*tAsyncZeroMQPubChannelR#RR%R,R-tAsyncTCPPubChannelR/R0tAsyncRAETPubChannelR2R3tAsyncLocalPubChannelR5(R$RRR6R7((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�s0
$
	
cC@s
t��dS(uX
        Return a future which completes when connected to the remote publisher
        N(R
(R((s9/usr/lib/python2.7/site-packages/salt/transport/client.pytconnect�scC@s
t��dS(uH
        When jobs are received pass them (decoded) to callback
        N(R
(Rtcallback((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyton_recv�s(RRRR&RR?RA(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR8�s$	RcB@seZdZed��ZRS(u3
    Factory class to create IPC Push channels
    cK@s"ddl}|jjj||�S(u\
        If we have additional IPC transports other than UxD and TCP, add them here
        iN(tsalt.transport.ipcR)tipctIPCMessageClient(RRR7((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�s(RRRRR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�sRcB@seZdZed��ZRS(u3
    Factory class to create IPC pull channels
    cK@s"ddl}|jjj||�S(u\
        If we have additional IPC transports other than UXD and TCP, add them here
        iN(RBR)RCtIPCMessageServer(RRR7((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�s(RRRRR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyR�s(Rt
__future__RRRtloggingtsalt.utils.asynchronousRt	getLoggerRR9tobjectRRRRRR8RR(((s9/usr/lib/python2.7/site-packages/salt/transport/client.pyt<module>s35

Zerion Mini Shell 1.0