Documentation ¶
Index ¶
- func GetEnvironment(key string) string
- func InitializeSshAgent(sshUser *string) *ssh.ClientConfig
- func Parallel(f fn, cmd string, hosts []string, config *ssh.ClientConfig)
- func ReadLines(path string) ([]string, error)
- func RunCommand(cmd, host string, config *ssh.ClientConfig) (string, string)
- func RunScriptCommand(scriptPath, host string, config *ssh.ClientConfig) (string, string)
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnvironment ¶
use os package to get the env variable which is already set
func InitializeSshAgent ¶
func InitializeSshAgent(sshUser *string) *ssh.ClientConfig
If the ssh-agent is running with the private key, this allows you to re-use private key for the SSH. Syntax is config := InitializeSshAgent(&user)
func RunCommand ¶
func RunCommand(cmd, host string, config *ssh.ClientConfig) (string, string)
func RunScriptCommand ¶
func RunScriptCommand(scriptPath, host string, config *ssh.ClientConfig) (string, string)
Types ¶
type Connection ¶
Click to show internal directories.
Click to hide internal directories.