client

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 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 NewMockClient added in v0.3.0

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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