Documentation ¶
Index ¶
- type DataStore
- func (_m *DataStore) AddAuthSet(ctx context.Context, set model.AuthSet) error
- func (_m *DataStore) AddDevice(ctx context.Context, d model.Device) error
- func (_m *DataStore) AddToken(ctx context.Context, t *jwt.Token) error
- func (_m *DataStore) DeleteAuthSetForDevice(ctx context.Context, devId string, authId string) error
- func (_m *DataStore) DeleteAuthSetsForDevice(ctx context.Context, devid string) error
- func (_m *DataStore) DeleteDevice(ctx context.Context, id string) error
- func (_m *DataStore) DeleteLimit(ctx context.Context, lim string) error
- func (_m *DataStore) DeleteToken(ctx context.Context, jti oid.ObjectID) error
- func (_m *DataStore) DeleteTokenByDevId(ctx context.Context, dev_id oid.ObjectID) error
- func (_m *DataStore) DeleteTokens(ctx context.Context) error
- func (_m *DataStore) ForEachTenant(parentCtx context.Context, opFunc store.MapFunc) error
- func (_m *DataStore) GetAuthSetById(ctx context.Context, id string) (*model.AuthSet, error)
- func (_m *DataStore) GetAuthSetByIdDataHashKey(ctx context.Context, idDataHash []byte, key string) (*model.AuthSet, error)
- func (_m *DataStore) GetAuthSetByIdDataHashKeyByStatus(ctx context.Context, idDataHash []byte, key string, status string) (*model.AuthSet, error)
- func (_m *DataStore) GetAuthSetsForDevice(ctx context.Context, devid string) ([]model.AuthSet, error)
- func (_m *DataStore) GetDevCountByStatus(ctx context.Context, status string) (int, error)
- func (_m *DataStore) GetDeviceById(ctx context.Context, id string) (*model.Device, error)
- func (_m *DataStore) GetDeviceByIdentityDataHash(ctx context.Context, idataHash []byte) (*model.Device, error)
- func (_m *DataStore) GetDeviceStatus(ctx context.Context, dev_id string) (string, error)
- func (_m *DataStore) GetDevices(ctx context.Context, skip uint, limit uint, filter model.DeviceFilter) ([]model.Device, error)
- func (_m *DataStore) GetLimit(ctx context.Context, name string) (*model.Limit, error)
- func (_m *DataStore) GetToken(ctx context.Context, jti oid.ObjectID) (*jwt.Token, error)
- func (_m *DataStore) ListTenantsIds(ctx context.Context) ([]string, error)
- func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenant string) error
- func (_m *DataStore) Ping(ctx context.Context) error
- func (_m *DataStore) PutLimit(ctx context.Context, lim model.Limit) error
- func (_m *DataStore) RejectAuthSetsForDevice(ctx context.Context, deviceID string) error
- func (_m *DataStore) StoreMigrationVersion(ctx context.Context, version *migrate.Version) error
- func (_m *DataStore) UpdateAuthSetById(ctx context.Context, authId string, mod model.AuthSetUpdate) error
- func (_m *DataStore) UpdateDevice(ctx context.Context, deviceID string, up model.DeviceUpdate) error
- func (_m *DataStore) WithAutomigrate() store.DataStore
- type MapFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
DataStore is an autogenerated mock type for the DataStore type
func (*DataStore) AddAuthSet ¶
AddAuthSet provides a mock function with given fields: ctx, set
func (*DataStore) DeleteAuthSetForDevice ¶
DeleteAuthSetForDevice provides a mock function with given fields: ctx, devId, authId
func (*DataStore) DeleteAuthSetsForDevice ¶
DeleteAuthSetsForDevice provides a mock function with given fields: ctx, devid
func (*DataStore) DeleteDevice ¶
DeleteDevice provides a mock function with given fields: ctx, id
func (*DataStore) DeleteLimit ¶
DeleteLimit provides a mock function with given fields: ctx, lim
func (*DataStore) DeleteToken ¶
DeleteToken provides a mock function with given fields: ctx, jti
func (*DataStore) DeleteTokenByDevId ¶
DeleteTokenByDevId provides a mock function with given fields: ctx, dev_id
func (*DataStore) DeleteTokens ¶
DeleteTokens provides a mock function with given fields: ctx
func (*DataStore) ForEachTenant ¶
ForEachTenant provides a mock function with given fields: parentCtx, opFunc
func (*DataStore) GetAuthSetById ¶
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 ¶
GetDevCountByStatus provides a mock function with given fields: ctx, status
func (*DataStore) GetDeviceById ¶
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 ¶
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) ListTenantsIds ¶
ListTenantsIds provides a mock function with given fields: ctx
func (*DataStore) MigrateTenant ¶
MigrateTenant provides a mock function with given fields: ctx, version, tenant
func (*DataStore) RejectAuthSetsForDevice ¶
RejectAuthSetsForDevice provides a mock function with given fields: ctx, deviceID
func (*DataStore) StoreMigrationVersion ¶
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) WithAutomigrate ¶
WithAutomigrate provides a mock function with given fields: