Documentation ¶
Index ¶
- type DataStore
- func (_m *DataStore) Close(ctx context.Context) error
- func (_m *DataStore) DeleteDevice(ctx context.Context, devID string) error
- func (_m *DataStore) DropDatabase(ctx context.Context) error
- func (_m *DataStore) GetDevice(ctx context.Context, devID string) (model.Device, error)
- func (_m *DataStore) InsertDevice(ctx context.Context, dev model.Device) error
- func (_m *DataStore) Migrate(ctx context.Context, version string, automigrate bool) error
- func (_m *DataStore) MigrateLatest(ctx context.Context) error
- func (_m *DataStore) Ping(ctx context.Context) error
- func (_m *DataStore) ReplaceConfiguration(ctx context.Context, dev model.Device) error
- func (_m *DataStore) ReplaceReportedConfiguration(ctx context.Context, dev model.Device) error
- func (_m *DataStore) SetDeploymentID(ctx context.Context, devID string, deploymentID uuid.UUID) error
- func (_m *DataStore) UpdateConfiguration(ctx context.Context, deviceID string, attrs model.Attributes) error
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) DeleteDevice ¶
DeleteDevice provides a mock function with given fields: ctx, devID
func (*DataStore) DropDatabase ¶
DropDatabase provides a mock function with given fields: ctx
func (*DataStore) InsertDevice ¶
InsertDevice provides a mock function with given fields: ctx, dev
func (*DataStore) Migrate ¶
Migrate provides a mock function with given fields: ctx, version, automigrate
func (*DataStore) MigrateLatest ¶
MigrateLatest provides a mock function with given fields: ctx
func (*DataStore) ReplaceConfiguration ¶
ReplaceConfiguration provides a mock function with given fields: ctx, dev
func (*DataStore) ReplaceReportedConfiguration ¶
ReplaceReportedConfiguration provides a mock function with given fields: ctx, dev
func (*DataStore) SetDeploymentID ¶
func (_m *DataStore) SetDeploymentID(ctx context.Context, devID string, deploymentID uuid.UUID) error
SetDeploymentID provides a mock function with given fields: ctx, devID, deploymentID
func (*DataStore) UpdateConfiguration ¶
func (_m *DataStore) UpdateConfiguration(ctx context.Context, deviceID string, attrs model.Attributes) error
UpdateConfiguration provides a mock function with given fields: ctx, deviceID, attrs