Documentation ¶
Index ¶
Constants ¶
View Source
const SshAgentError = Error("SshAgentError")
View Source
const TargetConnectError = Error("TargetConnectError")
Variables ¶
This section is empty.
Functions ¶
func ExecuteLocal ¶ added in v0.2.0
Types ¶
type Callback ¶ added in v0.2.0
type Callback func(CommandOperator) error
type CommandOperator ¶
type CommandRes ¶
type LocalOperator ¶ added in v0.2.0
type LocalOperator struct { }
func NewLocalOperator ¶ added in v0.2.0
func NewLocalOperator() *LocalOperator
func (LocalOperator) Execute ¶ added in v0.2.0
func (e LocalOperator) Execute(command string) (CommandRes, error)
func (LocalOperator) UploadFile ¶ added in v0.2.0
func (e LocalOperator) UploadFile(path string, remotePath string, mode string) 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)
func (SSHOperator) UploadFile ¶
func (s SSHOperator) UploadFile(path string, remotePath string, mode string) error
Click to show internal directories.
Click to hide internal directories.