mocks

package
v0.9.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 3 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 (*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(token string) (*revdial.Listener, error)

NewReverseListener provides a mock function with given fields: token

func (*Client) ReportUsage

func (_m *Client) ReportUsage(ur *models.UsageRecord, billingURL string) (int, error)

ReportUsage provides a mock function with given fields: ur, billingURL

Jump to

Keyboard shortcuts

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