Documentation ¶
Overview ¶
Copyright 2017 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) DeleteDeviceAuth(ctx context.Context, id model.AuthID) error
- func (_m *DataStore) DeleteDeviceAuthByDevice(ctx context.Context, id model.DeviceID) error
- func (_m *DataStore) GetDeviceAuth(ctx context.Context, id model.AuthID) (*model.DeviceAuth, error)
- func (_m *DataStore) GetDeviceAuths(ctx context.Context, skip int, limit int, filter store.Filter) ([]model.DeviceAuth, error)
- func (_m *DataStore) GetDeviceAuthsByIdentityData(ctx context.Context, idata string) ([]model.DeviceAuth, error)
- func (_m *DataStore) InsertDeviceAuth(ctx context.Context, dev *model.DeviceAuth) error
- func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenant string) error
- func (_m *DataStore) PutDeviceAuth(ctx context.Context, dev *model.DeviceAuth) error
- func (_m *DataStore) UpdateDeviceAuth(ctx context.Context, dev *model.DeviceAuth) 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) DeleteDeviceAuth ¶
DeleteDeviceAuth provides a mock function with given fields: ctx, id
func (*DataStore) DeleteDeviceAuthByDevice ¶
DeleteDeviceAuthByDevice provides a mock function with given fields: ctx, id
func (*DataStore) GetDeviceAuth ¶
GetDeviceAuth provides a mock function with given fields: ctx, id
func (*DataStore) GetDeviceAuths ¶
func (_m *DataStore) GetDeviceAuths(ctx context.Context, skip int, limit int, filter store.Filter) ([]model.DeviceAuth, error)
GetDeviceAuths provides a mock function with given fields: ctx, skip, limit, filter
func (*DataStore) GetDeviceAuthsByIdentityData ¶
func (_m *DataStore) GetDeviceAuthsByIdentityData(ctx context.Context, idata string) ([]model.DeviceAuth, error)
GetDeviceAuthsByIdentityData provides a mock function with given fields: ctx, idata
func (*DataStore) InsertDeviceAuth ¶
InsertDeviceAuth provides a mock function with given fields: ctx, dev
func (*DataStore) MigrateTenant ¶
MigrateTenant provides a mock function with given fields: ctx, version, tenant
func (*DataStore) PutDeviceAuth ¶
PutDeviceAuth provides a mock function with given fields: ctx, dev
func (*DataStore) UpdateDeviceAuth ¶
UpdateDeviceAuth provides a mock function with given fields: ctx, dev
func (*DataStore) WithAutomigrate ¶
WithAutomigrate provides a mock function with given fields: