mocks

package
v0.0.0-...-f5ffca4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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) Close

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

Close provides a mock function with given fields: ctx

func (*DataStore) DeleteDevice

func (_m *DataStore) DeleteDevice(ctx context.Context, devID string) error

DeleteDevice provides a mock function with given fields: ctx, devID

func (*DataStore) DropDatabase

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

DropDatabase provides a mock function with given fields: ctx

func (*DataStore) GetDevice

func (_m *DataStore) GetDevice(ctx context.Context, devID string) (model.Device, error)

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

func (*DataStore) InsertDevice

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

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

func (*DataStore) Migrate

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

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

func (*DataStore) MigrateLatest

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

MigrateLatest provides a mock function with given fields: ctx

func (*DataStore) Ping

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

Ping provides a mock function with given fields: ctx

func (*DataStore) ReplaceConfiguration

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

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

func (*DataStore) ReplaceReportedConfiguration

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

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

Jump to

Keyboard shortcuts

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