client

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	NewSession(stdout io.Writer, stderr io.Writer) (session.Session, error)
	Disconnect() error
}

func NewConnectClient

func NewConnectClient(network string, addr string, config *ssh.ClientConfig) (Client, error)

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func (*MockClient) Disconnect

func (_m *MockClient) Disconnect() error

Disconnect provides a mock function with given fields:

func (*MockClient) NewSession

func (_m *MockClient) NewSession(stdout io.Writer, stderr io.Writer) (session.Session, error)

NewSession provides a mock function with given fields: stdout, stderr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL