mocks

package
v0.0.0-...-0fb5413 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 4 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) AddDevice

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

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

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

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

GetAllAttributeNames provides a mock function with given fields: ctx

func (*DataStore) GetDevice

func (_m *DataStore) GetDevice(ctx context.Context, id model.DeviceID) (*model.Device, error)

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

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

func (_m *DataStore) GetFiltersAttributes(ctx context.Context) ([]model.FilterAttribute, error)

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

func (_m *DataStore) Maintenance(ctx context.Context, version string, tenantIDs ...string) error

Maintenance provides a mock function with given fields: ctx, version, tenantIDs

func (*DataStore) Migrate

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

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

func (*DataStore) MigrateTenant

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

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

func (*DataStore) Ping

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

Ping provides a mock function with given fields: ctx

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

func (_m *DataStore) UpdateDeviceText(ctx context.Context, id model.DeviceID, text string) error

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

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

WithAutomigrate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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