mocks

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 2 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.12.1

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) BillingEvaluate

func (_m *Client) BillingEvaluate(tenantID string) (*models.BillingEvaluation, int, error)

BillingEvaluate provides a mock function with given fields: tenantID

func (*Client) BillingReport added in v0.12.4

func (_m *Client) BillingReport(tenant string, action string) (int, error)

BillingReport provides a mock function with given fields: tenant, action

func (*Client) CreatePrivateKey

func (_m *Client) CreatePrivateKey() (*models.PrivateKey, error)

CreatePrivateKey provides a mock function with given fields:

func (*Client) DeviceLookup

func (_m *Client) DeviceLookup(lookup map[string]string) (*models.Device, []error)

DeviceLookup provides a mock function with given fields: lookup

func (*Client) DevicesHeartbeat added in v0.8.2

func (_m *Client) DevicesHeartbeat(id string) error

DevicesHeartbeat provides a mock function with given fields: id

func (*Client) DevicesOffline

func (_m *Client) DevicesOffline(id string) error

DevicesOffline provides a mock function with given fields: id

func (*Client) EvaluateKey

func (_m *Client) EvaluateKey(fingerprint string, dev *models.Device, username string) (bool, error)

EvaluateKey provides a mock function with given fields: fingerprint, dev, username

func (*Client) FinishSession

func (_m *Client) FinishSession(uid string) []error

FinishSession provides a mock function with given fields: uid

func (*Client) FirewallEvaluate

func (_m *Client) FirewallEvaluate(lookup map[string]string) error

FirewallEvaluate provides a mock function with given fields: lookup

func (*Client) GetDevice

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

GetDevice provides a mock function with given fields: uid

func (*Client) GetDeviceByPublicURLAddress added in v0.12.1

func (_m *Client) GetDeviceByPublicURLAddress(address string) (*models.Device, error)

GetDeviceByPublicURLAddress provides a mock function with given fields: address

func (*Client) GetPublicKey

func (_m *Client) GetPublicKey(fingerprint string, tenant string) (*models.PublicKey, error)

GetPublicKey provides a mock function with given fields: fingerprint, tenant

func (*Client) KeepAliveSession added in v0.8.2

func (_m *Client) KeepAliveSession(uid string) []error

KeepAliveSession provides a mock function with given fields: uid

func (*Client) ListDevices

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

ListDevices provides a mock function with given fields:

func (*Client) Lookup

func (_m *Client) Lookup(lookup map[string]string) (string, []error)

Lookup provides a mock function with given fields: lookup

func (*Client) LookupDevice

func (_m *Client) LookupDevice()

LookupDevice provides a mock function with given fields:

func (*Client) RecordSession

func (_m *Client) RecordSession(session *models.SessionRecorded, recordURL string)

RecordSession provides a mock function with given fields: session, recordURL

func (*Client) SessionAsAuthenticated added in v0.10.10

func (_m *Client) SessionAsAuthenticated(uid string) []error

SessionAsAuthenticated provides a mock function with given fields: uid

Jump to

Keyboard shortcuts

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