Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSshClientCmd ¶
func NewSshExecCmd ¶
Types ¶
type MultiExecutor ¶
type MultiExecutor struct {
Executor *SshExecutor
Concurrency int
}
func NewMultiExecutor ¶
func NewMultiExecutor(executor *SshExecutor, concurrency int) *MultiExecutor
func (*MultiExecutor) ExecuteAll ¶
type SshExecutor ¶
func NewSshExecutor ¶
func NewSshExecutor(username, password string) *SshExecutor
NewSshExecutor creates a new SSH executor with the given username and password. Default values: Port=22, Timeout=30s, Keepalive=30s, StrictHost=false.
Example:
executor := sshc.NewSshExecutor("root", "password")
executor.Port = 2222
executor.Timeout = 60 * time.Second
func (*SshExecutor) ExecuteOnHost ¶
Click to show internal directories.
Click to hide internal directories.