Documentation ¶
Overview ¶
Package runner provides the Inertia client's low-level SSH command runner
Index ¶
- type SSHOptions
- type SSHRunner
- func (r *SSHRunner) CopyFile(file io.Reader, remotePath string, permissions string) error
- func (r *SSHRunner) Run(cmd string) (cmdout *bytes.Buffer, cmderr *bytes.Buffer, err error)
- func (r *SSHRunner) RunSession(commands ...string) error
- func (r *SSHRunner) RunStream(cmd string, interactive bool) error
- type SSHSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHOptions ¶
type SSHOptions struct {
KeyPassphrase string
}
SSHOptions denotes options for the SSH runner
type SSHRunner ¶
type SSHRunner struct {
// contains filtered or unexported fields
}
SSHRunner runs commands over SSH and captures results.
func NewSSHRunner ¶
func NewSSHRunner(ip string, cfg *cfg.SSH, opts SSHOptions) *SSHRunner
NewSSHRunner returns a new SSHRunner
func (*SSHRunner) RunSession ¶
RunSession sets up a SSH shell to the remote
Click to show internal directories.
Click to hide internal directories.