Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOutput ¶
CommandOutput contains the STDIO output from running a command
type ExecuteCommand ¶
type ExecuteCommand interface { Execute(command string) (CommandOutput, error) ExecuteOutput(command string, stream bool) (CommandOutput, error) }
ExecuteCommand executes a command on a remote machine to install k3s
type SSHClient ¶
type SSHClient struct {
// contains filtered or unexported fields
}
SSHClient initializes a ssh client connection
func ConfigureSSHClient ¶
ConfigureSSHClient configures a ssh client with a user, host, and ssh keys
func NewSSHClient ¶
func NewSSHClient(host string, config *ssh.ClientConfig) (*SSHClient, error)
NewSSHClient creates a new ssh client connection with the provdided host and configuration
func (SSHClient) ExecuteOutput ¶
func (s SSHClient) ExecuteOutput(command string, stream bool) (CommandOutput, error)
ExecuteOutput pipes the remote command output to local stdio
Click to show internal directories.
Click to hide internal directories.