Documentation
¶
Index ¶
- type Client
- func (_m *Client) BillingEvaluate(ctx context.Context, tenantID string) (*models.BillingEvaluation, error)
- func (_m *Client) BillingReport(ctx context.Context, tenant string, action string) error
- func (_m *Client) CreatePrivateKey(ctx context.Context) (*models.PrivateKey, error)
- func (_m *Client) DeviceLookup(ctx context.Context, tenantID string, name string) (*models.Device, error)
- func (_m *Client) DevicesHeartbeat(ctx context.Context, uid string) error
- func (_m *Client) DevicesOffline(ctx context.Context, uid string) error
- func (_m *Client) EvaluateKey(ctx context.Context, fingerprint string, dev *models.Device, username string) (bool, error)
- func (_m *Client) EventSessionStream(ctx context.Context, uid string) (*websocket.Conn, error)
- func (_m *Client) FinishSession(ctx context.Context, uid string) error
- func (_m *Client) FirewallEvaluate(ctx context.Context, lookup map[string]string) error
- func (_m *Client) GetDevice(ctx context.Context, uid string) (*models.Device, error)
- func (_m *Client) GetPublicKey(ctx context.Context, 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(ctx context.Context, uid string) error
- func (_m *Client) ListDevices(ctx context.Context) ([]models.Device, error)
- func (_m *Client) Lookup(ctx context.Context, lookup map[string]string) (string, error)
- func (_m *Client) LookupWebEndpoints(ctx context.Context, address string) (*internalclient.WebEndpoint, error)
- func (_m *Client) NamespaceLookup(ctx context.Context, tenant string) (*models.Namespace, error)
- func (_m *Client) SaveSession(ctx context.Context, uid string, seat int) error
- func (_m *Client) SessionAsAuthenticated(ctx context.Context, uid string) error
- func (_m *Client) SessionCreate(ctx context.Context, session requests.SessionCreate) error
- func (_m *Client) UpdateSession(ctx context.Context, 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 ¶
func (_m *Client) BillingEvaluate(ctx context.Context, tenantID string) (*models.BillingEvaluation, error)
BillingEvaluate provides a mock function with given fields: ctx, tenantID
func (*Client) BillingReport ¶ added in v0.12.4
BillingReport provides a mock function with given fields: ctx, tenant, action
func (*Client) CreatePrivateKey ¶
CreatePrivateKey provides a mock function with given fields: ctx
func (*Client) DeviceLookup ¶
func (_m *Client) DeviceLookup(ctx context.Context, tenantID string, name string) (*models.Device, error)
DeviceLookup provides a mock function with given fields: ctx, tenantID, name
func (*Client) DevicesHeartbeat ¶ added in v0.8.2
DevicesHeartbeat provides a mock function with given fields: ctx, uid
func (*Client) DevicesOffline ¶
DevicesOffline provides a mock function with given fields: ctx, uid
func (*Client) EvaluateKey ¶
func (_m *Client) EvaluateKey(ctx context.Context, fingerprint string, dev *models.Device, username string) (bool, error)
EvaluateKey provides a mock function with given fields: ctx, fingerprint, dev, username
func (*Client) EventSessionStream ¶ added in v0.19.0
EventSessionStream provides a mock function with given fields: ctx, uid
func (*Client) FinishSession ¶
FinishSession provides a mock function with given fields: ctx, uid
func (*Client) FirewallEvaluate ¶
FirewallEvaluate provides a mock function with given fields: ctx, lookup
func (*Client) GetPublicKey ¶
func (_m *Client) GetPublicKey(ctx context.Context, fingerprint string, tenant string) (*models.PublicKey, error)
GetPublicKey provides a mock function with given fields: ctx, 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: ctx, uid
func (*Client) ListDevices ¶
ListDevices provides a mock function with given fields: ctx
func (*Client) LookupWebEndpoints ¶ added in v0.20.0
func (_m *Client) LookupWebEndpoints(ctx context.Context, address string) (*internalclient.WebEndpoint, error)
LookupWebEndpoints provides a mock function with given fields: ctx, address
func (*Client) NamespaceLookup ¶ added in v0.15.0
NamespaceLookup provides a mock function with given fields: ctx, tenant
func (*Client) SaveSession ¶ added in v0.19.0
SaveSession provides a mock function with given fields: ctx, uid, seat
func (*Client) SessionAsAuthenticated ¶ added in v0.10.10
SessionAsAuthenticated provides a mock function with given fields: ctx, uid
func (*Client) SessionCreate ¶ added in v0.15.0
SessionCreate provides a mock function with given fields: ctx, session
func (*Client) UpdateSession ¶ added in v0.16.0
UpdateSession provides a mock function with given fields: ctx, uid, model