Documentation ¶
Overview ¶
Package mock_database is a generated GoMock package.
Index ¶
- type MockDeviceRepo
- func (m *MockDeviceRepo) Close() error
- func (m *MockDeviceRepo) DeleteDevice(ctx context.Context, wwn string) error
- func (m *MockDeviceRepo) EXPECT() *MockDeviceRepoMockRecorder
- func (m *MockDeviceRepo) GetDeviceDetails(ctx context.Context, wwn string) (models.Device, error)
- func (m *MockDeviceRepo) GetDevices(ctx context.Context) ([]models.Device, error)
- func (m *MockDeviceRepo) GetSmartAttributeHistory(ctx context.Context, wwn, durationKey string, ...) ([]measurements.Smart, error)
- func (m *MockDeviceRepo) GetSmartTemperatureHistory(ctx context.Context, durationKey string) (map[string][]measurements.SmartTemperature, error)
- func (m *MockDeviceRepo) GetSummary(ctx context.Context) (map[string]*models.DeviceSummary, error)
- func (m *MockDeviceRepo) HealthCheck(ctx context.Context) error
- func (m *MockDeviceRepo) LoadSettings(ctx context.Context) (*models.Settings, error)
- func (m *MockDeviceRepo) RegisterDevice(ctx context.Context, dev models.Device) error
- func (m *MockDeviceRepo) SaveSettings(ctx context.Context, settings models.Settings) error
- func (m *MockDeviceRepo) SaveSmartAttributes(ctx context.Context, wwn string, collectorSmartData collector.SmartInfo) (measurements.Smart, error)
- func (m *MockDeviceRepo) SaveSmartTemperature(ctx context.Context, wwn, deviceProtocol string, ...) error
- func (m *MockDeviceRepo) UpdateDevice(ctx context.Context, wwn string, collectorSmartData collector.SmartInfo) (models.Device, error)
- func (m *MockDeviceRepo) UpdateDeviceStatus(ctx context.Context, wwn string, status pkg.DeviceStatus) (models.Device, error)
- type MockDeviceRepoMockRecorder
- func (mr *MockDeviceRepoMockRecorder) Close() *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) DeleteDevice(ctx, wwn interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) GetDeviceDetails(ctx, wwn interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) GetDevices(ctx interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) GetSmartAttributeHistory(...) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) GetSmartTemperatureHistory(ctx, durationKey interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) GetSummary(ctx interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) HealthCheck(ctx interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) LoadSettings(ctx interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) RegisterDevice(ctx, dev interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) SaveSettings(ctx, settings interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) SaveSmartAttributes(ctx, wwn, collectorSmartData interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) SaveSmartTemperature(ctx, wwn, deviceProtocol, collectorSmartData interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) UpdateDevice(ctx, wwn, collectorSmartData interface{}) *gomock.Call
- func (mr *MockDeviceRepoMockRecorder) UpdateDeviceStatus(ctx, wwn, status interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDeviceRepo ¶
type MockDeviceRepo struct {
// contains filtered or unexported fields
}
MockDeviceRepo is a mock of DeviceRepo interface.
func NewMockDeviceRepo ¶
func NewMockDeviceRepo(ctrl *gomock.Controller) *MockDeviceRepo
NewMockDeviceRepo creates a new mock instance.
func (*MockDeviceRepo) DeleteDevice ¶
func (m *MockDeviceRepo) DeleteDevice(ctx context.Context, wwn string) error
DeleteDevice mocks base method.
func (*MockDeviceRepo) EXPECT ¶
func (m *MockDeviceRepo) EXPECT() *MockDeviceRepoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeviceRepo) GetDeviceDetails ¶
GetDeviceDetails mocks base method.
func (*MockDeviceRepo) GetDevices ¶
GetDevices mocks base method.
func (*MockDeviceRepo) GetSmartAttributeHistory ¶
func (m *MockDeviceRepo) GetSmartAttributeHistory(ctx context.Context, wwn, durationKey string, selectEntries, selectEntriesOffset int, attributes []string) ([]measurements.Smart, error)
GetSmartAttributeHistory mocks base method.
func (*MockDeviceRepo) GetSmartTemperatureHistory ¶
func (m *MockDeviceRepo) GetSmartTemperatureHistory(ctx context.Context, durationKey string) (map[string][]measurements.SmartTemperature, error)
GetSmartTemperatureHistory mocks base method.
func (*MockDeviceRepo) GetSummary ¶
func (m *MockDeviceRepo) GetSummary(ctx context.Context) (map[string]*models.DeviceSummary, error)
GetSummary mocks base method.
func (*MockDeviceRepo) HealthCheck ¶
func (m *MockDeviceRepo) HealthCheck(ctx context.Context) error
HealthCheck mocks base method.
func (*MockDeviceRepo) LoadSettings ¶
LoadSettings mocks base method.
func (*MockDeviceRepo) RegisterDevice ¶
RegisterDevice mocks base method.
func (*MockDeviceRepo) SaveSettings ¶
SaveSettings mocks base method.
func (*MockDeviceRepo) SaveSmartAttributes ¶
func (m *MockDeviceRepo) SaveSmartAttributes(ctx context.Context, wwn string, collectorSmartData collector.SmartInfo) (measurements.Smart, error)
SaveSmartAttributes mocks base method.
func (*MockDeviceRepo) SaveSmartTemperature ¶
func (m *MockDeviceRepo) SaveSmartTemperature(ctx context.Context, wwn, deviceProtocol string, collectorSmartData collector.SmartInfo) error
SaveSmartTemperature mocks base method.
func (*MockDeviceRepo) UpdateDevice ¶
func (m *MockDeviceRepo) UpdateDevice(ctx context.Context, wwn string, collectorSmartData collector.SmartInfo) (models.Device, error)
UpdateDevice mocks base method.
func (*MockDeviceRepo) UpdateDeviceStatus ¶
func (m *MockDeviceRepo) UpdateDeviceStatus(ctx context.Context, wwn string, status pkg.DeviceStatus) (models.Device, error)
UpdateDeviceStatus mocks base method.
type MockDeviceRepoMockRecorder ¶
type MockDeviceRepoMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceRepoMockRecorder is the mock recorder for MockDeviceRepo.
func (*MockDeviceRepoMockRecorder) Close ¶
func (mr *MockDeviceRepoMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDeviceRepoMockRecorder) DeleteDevice ¶
func (mr *MockDeviceRepoMockRecorder) DeleteDevice(ctx, wwn interface{}) *gomock.Call
DeleteDevice indicates an expected call of DeleteDevice.
func (*MockDeviceRepoMockRecorder) GetDeviceDetails ¶
func (mr *MockDeviceRepoMockRecorder) GetDeviceDetails(ctx, wwn interface{}) *gomock.Call
GetDeviceDetails indicates an expected call of GetDeviceDetails.
func (*MockDeviceRepoMockRecorder) GetDevices ¶
func (mr *MockDeviceRepoMockRecorder) GetDevices(ctx interface{}) *gomock.Call
GetDevices indicates an expected call of GetDevices.
func (*MockDeviceRepoMockRecorder) GetSmartAttributeHistory ¶
func (mr *MockDeviceRepoMockRecorder) GetSmartAttributeHistory(ctx, wwn, durationKey, selectEntries, selectEntriesOffset, attributes interface{}) *gomock.Call
GetSmartAttributeHistory indicates an expected call of GetSmartAttributeHistory.
func (*MockDeviceRepoMockRecorder) GetSmartTemperatureHistory ¶
func (mr *MockDeviceRepoMockRecorder) GetSmartTemperatureHistory(ctx, durationKey interface{}) *gomock.Call
GetSmartTemperatureHistory indicates an expected call of GetSmartTemperatureHistory.
func (*MockDeviceRepoMockRecorder) GetSummary ¶
func (mr *MockDeviceRepoMockRecorder) GetSummary(ctx interface{}) *gomock.Call
GetSummary indicates an expected call of GetSummary.
func (*MockDeviceRepoMockRecorder) HealthCheck ¶
func (mr *MockDeviceRepoMockRecorder) HealthCheck(ctx interface{}) *gomock.Call
HealthCheck indicates an expected call of HealthCheck.
func (*MockDeviceRepoMockRecorder) LoadSettings ¶
func (mr *MockDeviceRepoMockRecorder) LoadSettings(ctx interface{}) *gomock.Call
LoadSettings indicates an expected call of LoadSettings.
func (*MockDeviceRepoMockRecorder) RegisterDevice ¶
func (mr *MockDeviceRepoMockRecorder) RegisterDevice(ctx, dev interface{}) *gomock.Call
RegisterDevice indicates an expected call of RegisterDevice.
func (*MockDeviceRepoMockRecorder) SaveSettings ¶
func (mr *MockDeviceRepoMockRecorder) SaveSettings(ctx, settings interface{}) *gomock.Call
SaveSettings indicates an expected call of SaveSettings.
func (*MockDeviceRepoMockRecorder) SaveSmartAttributes ¶
func (mr *MockDeviceRepoMockRecorder) SaveSmartAttributes(ctx, wwn, collectorSmartData interface{}) *gomock.Call
SaveSmartAttributes indicates an expected call of SaveSmartAttributes.
func (*MockDeviceRepoMockRecorder) SaveSmartTemperature ¶
func (mr *MockDeviceRepoMockRecorder) SaveSmartTemperature(ctx, wwn, deviceProtocol, collectorSmartData interface{}) *gomock.Call
SaveSmartTemperature indicates an expected call of SaveSmartTemperature.
func (*MockDeviceRepoMockRecorder) UpdateDevice ¶
func (mr *MockDeviceRepoMockRecorder) UpdateDevice(ctx, wwn, collectorSmartData interface{}) *gomock.Call
UpdateDevice indicates an expected call of UpdateDevice.
func (*MockDeviceRepoMockRecorder) UpdateDeviceStatus ¶
func (mr *MockDeviceRepoMockRecorder) UpdateDeviceStatus(ctx, wwn, status interface{}) *gomock.Call
UpdateDeviceStatus indicates an expected call of UpdateDeviceStatus.