Documentation ¶
Index ¶
- type DataStore
- func (_m *DataStore) AddDevice(ctx context.Context, dev *model.Device) error
- func (_m *DataStore) DeleteDevices(ctx context.Context, ids []model.DeviceID) (*model.UpdateResult, error)
- func (_m *DataStore) DeleteGroup(ctx context.Context, group model.GroupName) (chan model.DeviceID, error)
- func (_m *DataStore) GetAllAttributeNames(ctx context.Context) ([]string, error)
- func (_m *DataStore) GetDevice(ctx context.Context, id model.DeviceID) (*model.Device, error)
- func (_m *DataStore) GetDeviceGroup(ctx context.Context, id model.DeviceID) (model.GroupName, error)
- func (_m *DataStore) GetDevices(ctx context.Context, q store.ListQuery) ([]model.Device, int, error)
- func (_m *DataStore) GetDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, int, error)
- func (_m *DataStore) GetFiltersAttributes(ctx context.Context) ([]model.FilterAttribute, error)
- func (_m *DataStore) ListGroups(ctx context.Context, filters []model.FilterPredicate) ([]model.GroupName, error)
- func (_m *DataStore) Maintenance(ctx context.Context, version string, tenantIDs ...string) error
- func (_m *DataStore) Migrate(ctx context.Context, version string) error
- func (_m *DataStore) MigrateTenant(ctx context.Context, version string, tenantId string) error
- func (_m *DataStore) Ping(ctx context.Context) error
- func (_m *DataStore) SearchDevices(ctx context.Context, searchParams model.SearchParams) ([]model.Device, int, error)
- func (_m *DataStore) UnsetDevicesGroup(ctx context.Context, deviceIDs []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
- func (_m *DataStore) UpdateDeviceText(ctx context.Context, id model.DeviceID, text string) error
- func (_m *DataStore) UpdateDevicesGroup(ctx context.Context, devIDs []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
- func (_m *DataStore) UpsertDevicesAttributes(ctx context.Context, ids []model.DeviceID, attrs model.DeviceAttributes) (*model.UpdateResult, error)
- func (_m *DataStore) UpsertDevicesAttributesWithRevision(ctx context.Context, ids []model.DeviceUpdate, attrs model.DeviceAttributes) (*model.UpdateResult, error)
- func (_m *DataStore) UpsertDevicesAttributesWithUpdated(ctx context.Context, ids []model.DeviceID, attrs model.DeviceAttributes, ...) (*model.UpdateResult, error)
- func (_m *DataStore) UpsertRemoveDeviceAttributes(ctx context.Context, id model.DeviceID, updateAttrs model.DeviceAttributes, ...) (*model.UpdateResult, 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) DeleteDevices ¶
func (_m *DataStore) DeleteDevices(ctx context.Context, ids []model.DeviceID) (*model.UpdateResult, error)
DeleteDevices provides a mock function with given fields: ctx, ids
func (*DataStore) DeleteGroup ¶
func (_m *DataStore) DeleteGroup(ctx context.Context, group model.GroupName) (chan model.DeviceID, error)
DeleteGroup provides a mock function with given fields: ctx, group
func (*DataStore) GetAllAttributeNames ¶
GetAllAttributeNames provides a mock function with given fields: ctx
func (*DataStore) GetDeviceGroup ¶
func (_m *DataStore) GetDeviceGroup(ctx context.Context, id model.DeviceID) (model.GroupName, error)
GetDeviceGroup provides a mock function with given fields: ctx, id
func (*DataStore) GetDevices ¶
func (_m *DataStore) GetDevices(ctx context.Context, q store.ListQuery) ([]model.Device, int, error)
GetDevices provides a mock function with given fields: ctx, q
func (*DataStore) GetDevicesByGroup ¶
func (_m *DataStore) GetDevicesByGroup(ctx context.Context, group model.GroupName, skip int, limit int) ([]model.DeviceID, int, error)
GetDevicesByGroup provides a mock function with given fields: ctx, group, skip, limit
func (*DataStore) GetFiltersAttributes ¶
GetFiltersAttributes provides a mock function with given fields: ctx
func (*DataStore) ListGroups ¶
func (_m *DataStore) ListGroups(ctx context.Context, filters []model.FilterPredicate) ([]model.GroupName, error)
ListGroups provides a mock function with given fields: ctx, filters
func (*DataStore) Maintenance ¶
Maintenance provides a mock function with given fields: ctx, version, tenantIDs
func (*DataStore) MigrateTenant ¶
MigrateTenant provides a mock function with given fields: ctx, version, tenantId
func (*DataStore) SearchDevices ¶
func (_m *DataStore) SearchDevices(ctx context.Context, searchParams model.SearchParams) ([]model.Device, int, error)
SearchDevices provides a mock function with given fields: ctx, searchParams
func (*DataStore) UnsetDevicesGroup ¶
func (_m *DataStore) UnsetDevicesGroup(ctx context.Context, deviceIDs []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
UnsetDevicesGroup provides a mock function with given fields: ctx, deviceIDs, group
func (*DataStore) UpdateDeviceText ¶
UpdateDeviceText provides a mock function with given fields: ctx, id, text
func (*DataStore) UpdateDevicesGroup ¶
func (_m *DataStore) UpdateDevicesGroup(ctx context.Context, devIDs []model.DeviceID, group model.GroupName) (*model.UpdateResult, error)
UpdateDevicesGroup provides a mock function with given fields: ctx, devIDs, group
func (*DataStore) UpsertDevicesAttributes ¶
func (_m *DataStore) UpsertDevicesAttributes(ctx context.Context, ids []model.DeviceID, attrs model.DeviceAttributes) (*model.UpdateResult, error)
UpsertDevicesAttributes provides a mock function with given fields: ctx, ids, attrs
func (*DataStore) UpsertDevicesAttributesWithRevision ¶
func (_m *DataStore) UpsertDevicesAttributesWithRevision(ctx context.Context, ids []model.DeviceUpdate, attrs model.DeviceAttributes) (*model.UpdateResult, error)
UpsertDevicesAttributesWithRevision provides a mock function with given fields: ctx, ids, attrs
func (*DataStore) UpsertDevicesAttributesWithUpdated ¶
func (_m *DataStore) UpsertDevicesAttributesWithUpdated(ctx context.Context, ids []model.DeviceID, attrs model.DeviceAttributes, scope string, etag string) (*model.UpdateResult, error)
UpsertDevicesAttributesWithUpdated provides a mock function with given fields: ctx, ids, attrs, scope, etag
func (*DataStore) UpsertRemoveDeviceAttributes ¶
func (_m *DataStore) UpsertRemoveDeviceAttributes(ctx context.Context, id model.DeviceID, updateAttrs model.DeviceAttributes, removeAttrs model.DeviceAttributes, scope string, etag string) (*model.UpdateResult, error)
UpsertRemoveDeviceAttributes provides a mock function with given fields: ctx, id, updateAttrs, removeAttrs, scope, etag
func (*DataStore) WithAutomigrate ¶
WithAutomigrate provides a mock function with given fields: