Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxHops = 10 ConnTimeout = 10 * time.Second )
connection configuration values
Variables ¶
View Source
var ( Plugin = taskplugin.New("ssh", "0.2", execssh, taskplugin.WithConfig(configssh, ConfigSSH{}), ) )
ssh plugin opens an ssh connection and runs commands on target machine
Functions ¶
This section is empty.
Types ¶
type ConfigSSH ¶
type ConfigSSH struct { User string `json:"user"` Target string `json:"target"` Hops []string `json:"hops"` Script string `json:"script"` Result map[string]string `json:"result"` Key string `json:"ssh_key"` KeyPassphrase string `json:"ssh_key_passphrase"` AllowExitNonZero bool `json:"allow_exit_non_zero"` }
ConfigSSH is the data needed to perform an SSH action
Click to show internal directories.
Click to hide internal directories.