mocks

package
v0.17.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 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 struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient added in v0.13.6

func NewClient(t mockConstructorTestingTNewClient) *Client

NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Client) AuthDevice

func (_m *Client) AuthDevice(req *models.DeviceAuthRequest) (*models.DeviceAuthResponse, error)

AuthDevice provides a mock function with given fields: req

func (*Client) AuthPublicKey

func (_m *Client) AuthPublicKey(req *models.PublicKeyAuthRequest, token string) (*models.PublicKeyAuthResponse, error)

AuthPublicKey provides a mock function with given fields: req, token

func (*Client) Endpoints

func (_m *Client) Endpoints() (*models.Endpoints, error)

Endpoints provides a mock function with given fields:

func (*Client) GetDevice

func (_m *Client) GetDevice(uid string) (*models.Device, error)

GetDevice provides a mock function with given fields: uid

func (*Client) GetInfo

func (_m *Client) GetInfo(agentVersion string) (*models.Info, error)

GetInfo provides a mock function with given fields: agentVersion

func (*Client) ListDevices

func (_m *Client) ListDevices() ([]models.Device, error)

ListDevices provides a mock function with given fields:

func (*Client) NewReverseListener

func (_m *Client) NewReverseListener(ctx context.Context, token string, connPath string) (*revdial.Listener, error)

NewReverseListener provides a mock function with given fields: ctx, token, connPath

type IReverser added in v0.13.6

type IReverser struct {
	mock.Mock
}

IReverser is an autogenerated mock type for the IReverser type

func NewIReverser added in v0.13.6

func NewIReverser(t mockConstructorTestingTNewIReverser) *IReverser

NewIReverser creates a new instance of IReverser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IReverser) Auth added in v0.13.6

func (_m *IReverser) Auth(ctx context.Context, token string, connPath string) error

Auth provides a mock function with given fields: ctx, token, connPath

func (*IReverser) NewListener added in v0.13.6

func (_m *IReverser) NewListener() (*revdial.Listener, error)

NewListener provides a mock function with given fields:

Jump to

Keyboard shortcuts

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