Documentation ¶
Overview ¶
Package remote ssh'es into remote machines and runs a command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor interface { SetupKeys(string) error CreateClient() error CreateSession(string) (SSHSessionInterface, error) Run(string, SSHSessionInterface) (string, error) Close() error }
Executor interface for executing remote commands
func NewRemote ¶
func NewRemote(ipaddr, user string, port int32, usageMetricsLogger agentstatus.AgentStatus) Executor
NewRemote attempts to find connect to remote ssh server with private key
type SSHClientInterface ¶
SSHClientInterface abstracts the client struct from ssh package
Click to show internal directories.
Click to hide internal directories.