Documentation ¶
Index ¶
- type Client
- func (_m *Client) BillingEvaluate(tenantID string) (*models.BillingEvaluation, int, error)
- func (_m *Client) BillingReport(tenant string, action string) (int, error)
- func (_m *Client) CreatePrivateKey() (*models.PrivateKey, error)
- func (_m *Client) DeviceLookup(lookup map[string]string) (*models.Device, []error)
- func (_m *Client) DevicesHeartbeat(tenant string, uid string) error
- func (_m *Client) DevicesOffline(uid 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) InviteMember(ctx context.Context, tenantID string, userID string, forwardedHost string) 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) NamespaceLookup(tenant string) (*models.Namespace, []error)
- func (_m *Client) RecordSession(session *models.SessionRecorded, recordURL string) error
- func (_m *Client) SessionAsAuthenticated(uid string) []error
- func (_m *Client) SessionCreate(session requests.SessionCreate) error
- func (_m *Client) UpdateSession(uid string, model *models.SessionUpdate) 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
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. The first argument is typically a *testing.T value.
func (*Client) BillingEvaluate ¶
BillingEvaluate provides a mock function with given fields: tenantID
func (*Client) BillingReport ¶ added in v0.12.4
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 ¶
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: tenant, uid
func (*Client) DevicesOffline ¶
DevicesOffline provides a mock function with given fields: uid
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) InviteMember ¶ added in v0.17.0
func (_m *Client) InviteMember(ctx context.Context, tenantID string, userID string, forwardedHost string) error
InviteMember provides a mock function with given fields: ctx, tenantID, userID, forwardedHost
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) NamespaceLookup ¶ added in v0.15.0
NamespaceLookup provides a mock function with given fields: tenant
func (*Client) RecordSession ¶
func (_m *Client) RecordSession(session *models.SessionRecorded, recordURL string) error
RecordSession provides a mock function with given fields: session, recordURL
func (*Client) SessionAsAuthenticated ¶ added in v0.10.10
SessionAsAuthenticated provides a mock function with given fields: uid
func (*Client) SessionCreate ¶ added in v0.15.0
func (_m *Client) SessionCreate(session requests.SessionCreate) error
SessionCreate provides a mock function with given fields: session
func (*Client) UpdateSession ¶ added in v0.16.0
func (_m *Client) UpdateSession(uid string, model *models.SessionUpdate) error
UpdateSession provides a mock function with given fields: uid, model