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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore struct {
	mock.Mock
}

DataStore is an autogenerated mock type for the DataStore type

func (*DataStore) AddAuthSet

func (_m *DataStore) AddAuthSet(ctx context.Context, set model.AuthSet) error

AddAuthSet provides a mock function with given fields: ctx, set

func (*DataStore) AddDevice

func (_m *DataStore) AddDevice(ctx context.Context, d model.Device) error

AddDevice provides a mock function with given fields: ctx, d

func (*DataStore) AddToken

func (_m *DataStore) AddToken(ctx context.Context, t *jwt.Token) error

AddToken provides a mock function with given fields: ctx, t

func (*DataStore) DeleteAuthSetForDevice

func (_m *DataStore) DeleteAuthSetForDevice(ctx context.Context, devId string, authId string) error

DeleteAuthSetForDevice provides a mock function with given fields: ctx, devId, authId

func (*DataStore) DeleteAuthSetsForDevice

func (_m *DataStore) DeleteAuthSetsForDevice(ctx context.Context, devid string) error

DeleteAuthSetsForDevice provides a mock function with given fields: ctx, devid

func (*DataStore) DeleteDevice

func (_m *DataStore) DeleteDevice(ctx context.Context, id string) error

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

func (*DataStore) DeleteLimit

func (_m *DataStore) DeleteLimit(ctx context.Context, lim string) error

DeleteLimit provides a mock function with given fields: ctx, lim

func (*DataStore) DeleteToken

func (_m *DataStore) DeleteToken(ctx context.Context, jti oid.ObjectID) error

DeleteToken provides a mock function with given fields: ctx, jti

func (*DataStore) DeleteTokenByDevId

func (_m *DataStore) DeleteTokenByDevId(ctx context.Context, dev_id oid.ObjectID) error

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

func (*DataStore) DeleteTokens

func (_m *DataStore) DeleteTokens(ctx context.Context) error

DeleteTokens provides a mock function with given fields: ctx

func (*DataStore) ForEachTenant

func (_m *DataStore) ForEachTenant(parentCtx context.Context, opFunc store.MapFunc) error

ForEachTenant provides a mock function with given fields: parentCtx, opFunc

func (*DataStore) GetAuthSetById

func (_m *DataStore) GetAuthSetById(ctx context.Context, id string) (*model.AuthSet, error)

GetAuthSetById provides a mock function with given fields: ctx, id

func (*DataStore) GetAuthSetByIdDataHashKey

func (_m *DataStore) GetAuthSetByIdDataHashKey(ctx context.Context, idDataHash []byte, key string) (*model.AuthSet, error)

GetAuthSetByIdDataHashKey provides a mock function with given fields: ctx, idDataHash, key

func (*DataStore) GetAuthSetByIdDataHashKeyByStatus

func (_m *DataStore) GetAuthSetByIdDataHashKeyByStatus(ctx context.Context, idDataHash []byte, key string, status string) (*model.AuthSet, error)

GetAuthSetByIdDataHashKeyByStatus provides a mock function with given fields: ctx, idDataHash, key, status

func (*DataStore) GetAuthSetsForDevice

func (_m *DataStore) GetAuthSetsForDevice(ctx context.Context, devid string) ([]model.AuthSet, error)

GetAuthSetsForDevice provides a mock function with given fields: ctx, devid

func (*DataStore) GetDevCountByStatus

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

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

func (*DataStore) GetDeviceById

func (_m *DataStore) GetDeviceById(ctx context.Context, id string) (*model.Device, error)

GetDeviceById provides a mock function with given fields: ctx, id

func (*DataStore) GetDeviceByIdentityDataHash

func (_m *DataStore) GetDeviceByIdentityDataHash(ctx context.Context, idataHash []byte) (*model.Device, error)

GetDeviceByIdentityDataHash provides a mock function with given fields: ctx, idataHash

func (*DataStore) GetDeviceStatus

func (_m *DataStore) GetDeviceStatus(ctx context.Context, dev_id string) (string, error)

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

func (*DataStore) GetDevices

func (_m *DataStore) 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 (*DataStore) GetLimit

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

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

func (*DataStore) GetToken

func (_m *DataStore) GetToken(ctx context.Context, jti oid.ObjectID) (*jwt.Token, error)

GetToken provides a mock function with given fields: ctx, jti

func (*DataStore) ListTenantsIds

func (_m *DataStore) ListTenantsIds(ctx context.Context) ([]string, error)

ListTenantsIds provides a mock function with given fields: ctx

func (*DataStore) MigrateTenant

func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenant string) error

MigrateTenant provides a mock function with given fields: ctx, version, tenant

func (*DataStore) Ping

func (_m *DataStore) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*DataStore) PutLimit

func (_m *DataStore) PutLimit(ctx context.Context, lim model.Limit) error

PutLimit provides a mock function with given fields: ctx, lim

func (*DataStore) RejectAuthSetsForDevice

func (_m *DataStore) RejectAuthSetsForDevice(ctx context.Context, deviceID string) error

RejectAuthSetsForDevice provides a mock function with given fields: ctx, deviceID

func (*DataStore) StoreMigrationVersion

func (_m *DataStore) StoreMigrationVersion(ctx context.Context, version *migrate.Version) error

StoreMigrationVersion provides a mock function with given fields: ctx, version

func (*DataStore) UpdateAuthSetById

func (_m *DataStore) UpdateAuthSetById(ctx context.Context, authId string, mod model.AuthSetUpdate) error

UpdateAuthSetById provides a mock function with given fields: ctx, authId, mod

func (*DataStore) UpdateDevice

func (_m *DataStore) UpdateDevice(ctx context.Context, deviceID string, up model.DeviceUpdate) error

UpdateDevice provides a mock function with given fields: ctx, deviceID, up

func (*DataStore) UpsertAuthSetStatus

func (_m *DataStore) UpsertAuthSetStatus(ctx context.Context, authSet *model.AuthSet) error

UpsertAuthSetStatus provides a mock function with given fields: ctx, authSet

func (*DataStore) WithAutomigrate

func (_m *DataStore) WithAutomigrate() store.DataStore

WithAutomigrate provides a mock function with given fields:

type MapFunc

type MapFunc struct {
	mock.Mock
}

MapFunc is an autogenerated mock type for the MapFunc type

func (*MapFunc) Execute

func (_m *MapFunc) Execute(dbCtx context.Context) error

Execute provides a mock function with given fields: dbCtx

Jump to

Keyboard shortcuts

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