Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrepareRequestData ¶
PrepareRequestData prepares SSH request data by extracting environment variables
Types ¶
type Req ¶
type Req struct {
Host string `map:"host" validate:"required"`
Port int `map:"port"`
User string `map:"user" validate:"required"`
Cmd string `map:"cmd" validate:"required"`
Password string `map:"password"`
KeyFile string `map:"key_file"`
KeyPassphrase string `map:"key_passphrase"`
Timeout string `map:"timeout"`
Workdir string `map:"workdir"`
Env map[string]string `map:"env"`
StrictHostCheck bool `map:"strict_host_check"`
KnownHosts string `map:"known_hosts"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.