mocks

package
v0.0.0-...-2b69720 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	mock.Mock
}

App is an autogenerated mock type for the App type

func (*App) AcceptDeviceAuth

func (_m *App) AcceptDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

AcceptDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) DecommissionDevice

func (_m *App) DecommissionDevice(ctx context.Context, dev_id string) error

DecommissionDevice provides a mock function with given fields: ctx, dev_id

func (*App) DeleteAuthSet

func (_m *App) DeleteAuthSet(ctx context.Context, dev_id string, auth_id string) error

DeleteAuthSet provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) DeleteDevice

func (_m *App) DeleteDevice(ctx context.Context, dev_id string) error

DeleteDevice provides a mock function with given fields: ctx, dev_id

func (*App) DeleteTenantLimit

func (_m *App) DeleteTenantLimit(ctx context.Context, tenant_id string, limit string) error

DeleteTenantLimit provides a mock function with given fields: ctx, tenant_id, limit

func (*App) DeleteTokens

func (_m *App) DeleteTokens(ctx context.Context, tenantID string, deviceID string) error

DeleteTokens provides a mock function with given fields: ctx, tenantID, deviceID

func (*App) GetDevCountByStatus

func (_m *App) GetDevCountByStatus(ctx context.Context, status string) (int, error)

GetDevCountByStatus provides a mock function with given fields: ctx, status

func (*App) GetDevice

func (_m *App) GetDevice(ctx context.Context, dev_id string) (*model.Device, error)

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

func (*App) GetDevices

func (_m *App) GetDevices(ctx context.Context, skip uint, limit uint, filter model.DeviceFilter) ([]model.Device, error)

GetDevices provides a mock function with given fields: ctx, skip, limit, filter

func (*App) GetLimit

func (_m *App) GetLimit(ctx context.Context, name string) (*model.Limit, error)

GetLimit provides a mock function with given fields: ctx, name

func (*App) GetTenantDeviceStatus

func (_m *App) GetTenantDeviceStatus(ctx context.Context, tenantId string, deviceId string) (*model.Status, error)

GetTenantDeviceStatus provides a mock function with given fields: ctx, tenantId, deviceId

func (*App) GetTenantLimit

func (_m *App) GetTenantLimit(ctx context.Context, name string, tenant_id string) (*model.Limit, error)

GetTenantLimit provides a mock function with given fields: ctx, name, tenant_id

func (*App) HealthCheck

func (_m *App) HealthCheck(ctx context.Context) error

HealthCheck provides a mock function with given fields: ctx

func (*App) PreauthorizeDevice

func (_m *App) PreauthorizeDevice(ctx context.Context, req *model.PreAuthReq) (*model.Device, error)

PreauthorizeDevice provides a mock function with given fields: ctx, req

func (*App) ProvisionTenant

func (_m *App) ProvisionTenant(ctx context.Context, tenant_id string) error

ProvisionTenant provides a mock function with given fields: ctx, tenant_id

func (*App) RejectDeviceAuth

func (_m *App) RejectDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

RejectDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) ResetDeviceAuth

func (_m *App) ResetDeviceAuth(ctx context.Context, dev_id string, auth_id string) error

ResetDeviceAuth provides a mock function with given fields: ctx, dev_id, auth_id

func (*App) RevokeToken

func (_m *App) RevokeToken(ctx context.Context, tokenID string) error

RevokeToken provides a mock function with given fields: ctx, tokenID

func (*App) SetTenantLimit

func (_m *App) SetTenantLimit(ctx context.Context, tenant_id string, limit model.Limit) error

SetTenantLimit provides a mock function with given fields: ctx, tenant_id, limit

func (*App) SubmitAuthRequest

func (_m *App) SubmitAuthRequest(ctx context.Context, r *model.AuthReq) (string, error)

SubmitAuthRequest provides a mock function with given fields: ctx, r

func (*App) VerifyToken

func (_m *App) VerifyToken(ctx context.Context, token string) error

VerifyToken provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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