Documentation ¶
Overview ¶
Copyright 2018 Northern.tech AS
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
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 model.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) DeleteToken(ctx context.Context, jti string) error
- func (_m *DataStore) DeleteTokenByDevId(ctx context.Context, dev_id string) error
- func (_m *DataStore) DeleteTokens(ctx context.Context) 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) GetAuthSets(ctx context.Context, skip int, limit int, filter store.AuthSetFilter) ([]model.DevAdmAuthSet, 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 store.DeviceFilter) ([]model.Device, error)
- func (_m *DataStore) GetLimit(ctx context.Context, name string) (*model.Limit, error)
- func (_m *DataStore) GetToken(ctx context.Context, jti string) (*model.Token, error)
- func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenant string) error
- func (_m *DataStore) PutLimit(ctx context.Context, lim model.Limit) error
- func (_m *DataStore) UpdateAuthSet(ctx context.Context, filter interface{}, mod model.AuthSetUpdate) error
- func (_m *DataStore) UpdateDevice(ctx context.Context, d model.Device, up model.DeviceUpdate) error
- func (_m *DataStore) WithAutomigrate() store.DataStore
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) 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) 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) GetAuthSets ¶
func (_m *DataStore) GetAuthSets(ctx context.Context, skip int, limit int, filter store.AuthSetFilter) ([]model.DevAdmAuthSet, error)
GetAuthSets provides a mock function with given fields: ctx, skip, limit, filter
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 store.DeviceFilter) ([]model.Device, error)
GetDevices provides a mock function with given fields: ctx, skip, limit, filter
func (*DataStore) MigrateTenant ¶
MigrateTenant provides a mock function with given fields: ctx, version, tenant
func (*DataStore) UpdateAuthSet ¶
func (_m *DataStore) UpdateAuthSet(ctx context.Context, filter interface{}, mod model.AuthSetUpdate) error
UpdateAuthSet provides a mock function with given fields: ctx, filter, mod
func (*DataStore) UpdateDevice ¶
UpdateDevice provides a mock function with given fields: ctx, d, up
func (*DataStore) WithAutomigrate ¶
WithAutomigrate provides a mock function with given fields: