Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Run runs a command over the SSH connection.
Run(bool, string) error
// CombinedOutput runs a command over the SSH connection, returning the combined
// stdin and stdout.
CombinedOutput(string) ([]byte, error)
// Close closes the SSH connection.
Close() error
// Shell creates a login shell.
Shell() error
}
Client is an SSH client used for `kelda` commands.
type NativeClient ¶
NativeClient is wrapper over Go's SSH client.
func (NativeClient) CombinedOutput ¶
func (c NativeClient) CombinedOutput(command string) ([]byte, error)
CombinedOutput runs an SSH command, returning the combined stdin and stdout.
Click to show internal directories.
Click to hide internal directories.