Liking cljdoc? Tell your friends :D

pallet.ssh.execute

Execution of pallet actions via ssh

Execution of pallet actions via ssh
raw docstring

authenticationclj

(authentication session)

Return the user to use for authentication. This is not necessarily the admin user (e.g. when bootstrapping, it is the image user).

Return the user to use for authentication.  This is not necessarily the
admin user (e.g. when bootstrapping, it is the image user).
sourceraw docstring

endpointclj

(endpoint session)
source

expire-connectionclj

(expire-connection session)
source

get-connectionclj

(get-connection session)
source

local-connectionclj

source

on-retryclj

(on-retry)

A function that can be overriden to do something before a retry. Useful when switching between VPN/Non-VPN

A function that can be overriden to do something before a retry.
Useful when switching between VPN/Non-VPN
sourceraw docstring

on-retry-fclj

(on-retry-f f)
source

on-retry-f-varclj

source

release-connectionclj

(release-connection session connection)
source

ssh-connectionclj

source

ssh-connection-optionsclj

source

ssh-from-localclj

(ssh-from-local session value)

Transfer a file from the origin machine to the target via ssh.

Transfer a file from the origin machine to the target via ssh.
sourceraw docstring

ssh-script-on-targetclj

(ssh-script-on-target session
                      {:keys [context node-value-path] :as action}
                      action-type
                      [options script])

Execute a bash action on the target via ssh.

Execute a bash action on the target via ssh.
sourceraw docstring

ssh-to-localclj

(ssh-to-local session value)

Transfer a file from the target machine to the origin via ssh.

Transfer a file from the target machine to the origin via ssh.
sourceraw docstring

with-connectioncljmacro

(with-connection session [connection & [no-cache]] & body)

Execute the body with a connection to the current target node,

Execute the body with a connection to the current target node,
sourceraw docstring

with-connection*clj

(with-connection* session f)

Execute a function with a connection to the current target node,

Execute a function with a connection to the current target node,
sourceraw docstring

with-connection-exception-handlerclj

(with-connection-exception-handler e)
source

with-ssh-forwardcljmacro

(with-ssh-forward session tunnels & body)

Execute the body with an ssh-tunnel available for the ports given in the tunnels map. Automatically closes port forwards on completion.

Tunnels should be a map from local ports (integers) to either

  1. An integer remote port. Remote host is assumed to be "localhost".
  2. A vector of remote host and remote port. eg, ["yahoo.com" 80].

e.g. (with-ssh-tunnel session {2222 22} ;; do something on local port 2222 session)

Execute the body with an ssh-tunnel available for the ports given in the
tunnels map. Automatically closes port forwards on completion.

Tunnels should be a map from local ports (integers) to either
  1) An integer remote port. Remote host is assumed to be "localhost".
  2) A vector of remote host and remote port. eg, ["yahoo.com" 80].

e.g.
     (with-ssh-tunnel session {2222 22}
        ;; do something on local port 2222
        session)
sourceraw docstring

with-ssh-tunnelcljmacrodeprecated

(with-ssh-tunnel transport session tunnels & body)

Execute the body with an ssh-tunnel available for the ports given in the tunnels map. Automatically closes port forwards on completion.

Tunnels should be a map from local ports (integers) to either

  1. An integer remote port. Remote host is assumed to be "localhost".
  2. A vector of remote host and remote port. eg, ["yahoo.com" 80].

e.g. (with-ssh-tunnel session {2222 22} ;; do something on local port 2222 session)

Execute the body with an ssh-tunnel available for the ports given in the
 tunnels map. Automatically closes port forwards on completion.

 Tunnels should be a map from local ports (integers) to either
   1) An integer remote port. Remote host is assumed to be "localhost".
   2) A vector of remote host and remote port. eg, ["yahoo.com" 80].

 e.g.
      (with-ssh-tunnel session {2222 22}
         ;; do something on local port 2222
session)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close