mocks

package
v0.21.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 6 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. 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

func (_m *Client) BillingReport(ctx context.Context, tenant string, action string) error

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

func (*Client) CreatePrivateKey

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

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

func (_m *Client) DevicesHeartbeat(ctx context.Context, uid string) error

DevicesHeartbeat provides a mock function with given fields: ctx, uid

func (*Client) DevicesOffline

func (_m *Client) DevicesOffline(ctx context.Context, uid string) error

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

func (_m *Client) EventSessionStream(ctx context.Context, uid string) (*websocket.Conn, error)

EventSessionStream provides a mock function with given fields: ctx, uid

func (*Client) FinishSession

func (_m *Client) FinishSession(ctx context.Context, uid string) error

FinishSession provides a mock function with given fields: ctx, uid

func (*Client) FirewallEvaluate

func (_m *Client) FirewallEvaluate(ctx context.Context, lookup map[string]string) error

FirewallEvaluate provides a mock function with given fields: ctx, lookup

func (*Client) GetDevice

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

GetDevice provides a mock function with given fields: ctx, uid

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

func (_m *Client) KeepAliveSession(ctx context.Context, uid string) error

KeepAliveSession provides a mock function with given fields: ctx, uid

func (*Client) ListDevices

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

ListDevices provides a mock function with given fields: ctx

func (*Client) Lookup

func (_m *Client) Lookup(ctx context.Context, lookup map[string]string) (string, error)

Lookup provides a mock function with given fields: ctx, lookup

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

func (_m *Client) NamespaceLookup(ctx context.Context, tenant string) (*models.Namespace, error)

NamespaceLookup provides a mock function with given fields: ctx, tenant

func (*Client) SaveSession added in v0.19.0

func (_m *Client) SaveSession(ctx context.Context, uid string, seat int) error

SaveSession provides a mock function with given fields: ctx, uid, seat

func (*Client) SessionAsAuthenticated added in v0.10.10

func (_m *Client) SessionAsAuthenticated(ctx context.Context, uid string) error

SessionAsAuthenticated provides a mock function with given fields: ctx, uid

func (*Client) SessionCreate added in v0.15.0

func (_m *Client) SessionCreate(ctx context.Context, session requests.SessionCreate) error

SessionCreate provides a mock function with given fields: ctx, session

func (*Client) UpdateSession added in v0.16.0

func (_m *Client) UpdateSession(ctx context.Context, uid string, model *models.SessionUpdate) error

UpdateSession provides a mock function with given fields: ctx, uid, model

Jump to

Keyboard shortcuts

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