Documentation ¶
Index ¶
- type Client
- func (_m *Client) BillingEvaluate(tenantID string) (*models.Namespace, int, error)
- func (_m *Client) CreatePrivateKey() (*models.PrivateKey, error)
- func (_m *Client) DeviceLookup(lookup map[string]string) (*models.Device, []error)
- func (_m *Client) DevicesHeartbeat(id string) error
- func (_m *Client) DevicesOffline(id string) error
- func (_m *Client) EvaluateKey(fingerprint string, dev *models.Device, username string) (bool, error)
- func (_m *Client) FinishSession(uid string) []error
- func (_m *Client) FirewallEvaluate(lookup map[string]string) error
- func (_m *Client) GetDevice(uid string) (*models.Device, error)
- func (_m *Client) GetDeviceByPublicURLAddress(address string) (*models.Device, error)
- func (_m *Client) GetPublicKey(fingerprint string, tenant string) (*models.PublicKey, error)
- func (_m *Client) KeepAliveSession(uid string) []error
- func (_m *Client) ListDevices() ([]models.Device, error)
- func (_m *Client) Lookup(lookup map[string]string) (string, []error)
- func (_m *Client) LookupDevice()
- func (_m *Client) RecordSession(session *models.SessionRecorded, recordURL string)
- func (_m *Client) ReportDelete(ns *models.Namespace) (int, error)
- func (_m *Client) ReportUsage(ur *models.UsageRecord) (int, error)
- func (_m *Client) SessionAsAuthenticated(uid string) []error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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 ¶
BillingEvaluate provides a mock function with given fields: tenantID
func (*Client) CreatePrivateKey ¶
func (_m *Client) CreatePrivateKey() (*models.PrivateKey, error)
CreatePrivateKey provides a mock function with given fields:
func (*Client) DeviceLookup ¶
DeviceLookup provides a mock function with given fields: lookup
func (*Client) DevicesHeartbeat ¶ added in v0.8.2
DevicesHeartbeat provides a mock function with given fields: id
func (*Client) DevicesOffline ¶
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 ¶
FinishSession provides a mock function with given fields: uid
func (*Client) FirewallEvaluate ¶
FirewallEvaluate provides a mock function with given fields: lookup
func (*Client) GetDeviceByPublicURLAddress ¶ added in v0.12.1
GetDeviceByPublicURLAddress provides a mock function with given fields: address
func (*Client) GetPublicKey ¶
GetPublicKey provides a mock function with given fields: fingerprint, tenant
func (*Client) KeepAliveSession ¶ added in v0.8.2
KeepAliveSession provides a mock function with given fields: uid
func (*Client) ListDevices ¶
ListDevices provides a mock function with given fields:
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) ReportDelete ¶
ReportDelete provides a mock function with given fields: ns
func (*Client) ReportUsage ¶
func (_m *Client) ReportUsage(ur *models.UsageRecord) (int, error)
ReportUsage provides a mock function with given fields: ur
func (*Client) SessionAsAuthenticated ¶ added in v0.10.10
SessionAsAuthenticated provides a mock function with given fields: uid