Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOperator ¶
type CommandOperator interface {
Execute(command string) (CommandRes, error)
}
type CommandRes ¶
type ExecOperator ¶
type ExecOperator struct { }
func (ExecOperator) Execute ¶
func (ex ExecOperator) Execute(command string) (CommandRes, error)
type SSHOperator ¶
type SSHOperator struct {
// contains filtered or unexported fields
}
func NewSSHOperator ¶
func NewSSHOperator(address string, config *ssh.ClientConfig) (*SSHOperator, error)
func (SSHOperator) Close ¶
func (s SSHOperator) Close() error
func (SSHOperator) Execute ¶
func (s SSHOperator) Execute(command string) (CommandRes, error)
Click to show internal directories.
Click to hide internal directories.