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 `quilt` commands.
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func (*MockClient) Close ¶
func (_m *MockClient) Close() error
Close provides a mock function with given fields:
func (*MockClient) CombinedOutput ¶
func (_m *MockClient) CombinedOutput(_a0 string) ([]byte, error)
CombinedOutput provides a mock function with given fields: _a0
func (*MockClient) Run ¶
func (_m *MockClient) Run(_a0 bool, _a1 string) error
Run provides a mock function with given fields: _a0, _a1
func (*MockClient) Shell ¶
func (_m *MockClient) Shell() error
Shell provides a mock function with given fields:
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.