Documentation
¶
Index ¶
- type MockAuthService
- func (_mock *MockAuthService) AddUser(ctx context.Context, by auth.Principal, name string, pw string, lang string) (auth.UserInfo, error)
- func (_mock *MockAuthService) Audit(ctx context.Context, from time.Time, to time.Time) ([]auth.AuditInfo, error)
- func (_mock *MockAuthService) CreateToken(ctx context.Context, by auth.Principal, name string, expires time.Duration) (auth.NewToken, error)
- func (_mock *MockAuthService) DeleteUser(ctx context.Context, by auth.Principal, id int64) error
- func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
- func (_mock *MockAuthService) Login(ctx context.Context, name string, pw string, ip string) (auth.Login, error)
- func (_mock *MockAuthService) Logout(ctx context.Context, p auth.Principal) error
- func (_mock *MockAuthService) RevokeToken(ctx context.Context, by auth.Principal, id string) error
- func (_mock *MockAuthService) SetPassword(ctx context.Context, by auth.Principal, id int64, pw string) error
- func (_mock *MockAuthService) Setup(ctx context.Context, r auth.SetupRequest) (auth.Login, error)
- func (_mock *MockAuthService) SetupRequired(ctx context.Context) (bool, error)
- func (_mock *MockAuthService) Tokens(ctx context.Context) ([]auth.TokenInfo, error)
- func (_mock *MockAuthService) Users(ctx context.Context) ([]auth.UserInfo, error)
- type MockAuthService_AddUser_Call
- type MockAuthService_Audit_Call
- func (_c *MockAuthService_Audit_Call) Return(auditInfos []auth.AuditInfo, err error) *MockAuthService_Audit_Call
- func (_c *MockAuthService_Audit_Call) Run(run func(ctx context.Context, from time.Time, to time.Time)) *MockAuthService_Audit_Call
- func (_c *MockAuthService_Audit_Call) RunAndReturn(...) *MockAuthService_Audit_Call
- type MockAuthService_CreateToken_Call
- func (_c *MockAuthService_CreateToken_Call) Return(newToken auth.NewToken, err error) *MockAuthService_CreateToken_Call
- func (_c *MockAuthService_CreateToken_Call) Run(...) *MockAuthService_CreateToken_Call
- func (_c *MockAuthService_CreateToken_Call) RunAndReturn(...) *MockAuthService_CreateToken_Call
- type MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) Return(err error) *MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) Run(run func(ctx context.Context, by auth.Principal, id int64)) *MockAuthService_DeleteUser_Call
- func (_c *MockAuthService_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id int64) error) *MockAuthService_DeleteUser_Call
- type MockAuthService_Expecter
- func (_e *MockAuthService_Expecter) AddUser(ctx any, by any, name any, pw any, lang any) *MockAuthService_AddUser_Call
- func (_e *MockAuthService_Expecter) Audit(ctx any, from any, to any) *MockAuthService_Audit_Call
- func (_e *MockAuthService_Expecter) CreateToken(ctx any, by any, name any, expires any) *MockAuthService_CreateToken_Call
- func (_e *MockAuthService_Expecter) DeleteUser(ctx any, by any, id any) *MockAuthService_DeleteUser_Call
- func (_e *MockAuthService_Expecter) Login(ctx any, name any, pw any, ip any) *MockAuthService_Login_Call
- func (_e *MockAuthService_Expecter) Logout(ctx any, p any) *MockAuthService_Logout_Call
- func (_e *MockAuthService_Expecter) RevokeToken(ctx any, by any, id any) *MockAuthService_RevokeToken_Call
- func (_e *MockAuthService_Expecter) SetPassword(ctx any, by any, id any, pw any) *MockAuthService_SetPassword_Call
- func (_e *MockAuthService_Expecter) Setup(ctx any, r any) *MockAuthService_Setup_Call
- func (_e *MockAuthService_Expecter) SetupRequired(ctx any) *MockAuthService_SetupRequired_Call
- func (_e *MockAuthService_Expecter) Tokens(ctx any) *MockAuthService_Tokens_Call
- func (_e *MockAuthService_Expecter) Users(ctx any) *MockAuthService_Users_Call
- type MockAuthService_Login_Call
- func (_c *MockAuthService_Login_Call) Return(login auth.Login, err error) *MockAuthService_Login_Call
- func (_c *MockAuthService_Login_Call) Run(run func(ctx context.Context, name string, pw string, ip string)) *MockAuthService_Login_Call
- func (_c *MockAuthService_Login_Call) RunAndReturn(...) *MockAuthService_Login_Call
- type MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) Return(err error) *MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) Run(run func(ctx context.Context, p auth.Principal)) *MockAuthService_Logout_Call
- func (_c *MockAuthService_Logout_Call) RunAndReturn(run func(ctx context.Context, p auth.Principal) error) *MockAuthService_Logout_Call
- type MockAuthService_RevokeToken_Call
- func (_c *MockAuthService_RevokeToken_Call) Return(err error) *MockAuthService_RevokeToken_Call
- func (_c *MockAuthService_RevokeToken_Call) Run(run func(ctx context.Context, by auth.Principal, id string)) *MockAuthService_RevokeToken_Call
- func (_c *MockAuthService_RevokeToken_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id string) error) *MockAuthService_RevokeToken_Call
- type MockAuthService_SetPassword_Call
- func (_c *MockAuthService_SetPassword_Call) Return(err error) *MockAuthService_SetPassword_Call
- func (_c *MockAuthService_SetPassword_Call) Run(run func(ctx context.Context, by auth.Principal, id int64, pw string)) *MockAuthService_SetPassword_Call
- func (_c *MockAuthService_SetPassword_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id int64, pw string) error) *MockAuthService_SetPassword_Call
- type MockAuthService_SetupRequired_Call
- func (_c *MockAuthService_SetupRequired_Call) Return(b bool, err error) *MockAuthService_SetupRequired_Call
- func (_c *MockAuthService_SetupRequired_Call) Run(run func(ctx context.Context)) *MockAuthService_SetupRequired_Call
- func (_c *MockAuthService_SetupRequired_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *MockAuthService_SetupRequired_Call
- type MockAuthService_Setup_Call
- func (_c *MockAuthService_Setup_Call) Return(login auth.Login, err error) *MockAuthService_Setup_Call
- func (_c *MockAuthService_Setup_Call) Run(run func(ctx context.Context, r auth.SetupRequest)) *MockAuthService_Setup_Call
- func (_c *MockAuthService_Setup_Call) RunAndReturn(run func(ctx context.Context, r auth.SetupRequest) (auth.Login, error)) *MockAuthService_Setup_Call
- type MockAuthService_Tokens_Call
- func (_c *MockAuthService_Tokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *MockAuthService_Tokens_Call
- func (_c *MockAuthService_Tokens_Call) Run(run func(ctx context.Context)) *MockAuthService_Tokens_Call
- func (_c *MockAuthService_Tokens_Call) RunAndReturn(run func(ctx context.Context) ([]auth.TokenInfo, error)) *MockAuthService_Tokens_Call
- type MockAuthService_Users_Call
- func (_c *MockAuthService_Users_Call) Return(userInfos []auth.UserInfo, err error) *MockAuthService_Users_Call
- func (_c *MockAuthService_Users_Call) Run(run func(ctx context.Context)) *MockAuthService_Users_Call
- func (_c *MockAuthService_Users_Call) RunAndReturn(run func(ctx context.Context) ([]auth.UserInfo, error)) *MockAuthService_Users_Call
- type MockConfigService
- func (_mock *MockConfigService) DeleteObject(ctx context.Context, by string, kind string, id string) (int64, error)
- func (_m *MockConfigService) EXPECT() *MockConfigService_Expecter
- func (_mock *MockConfigService) Export(ctx context.Context) ([]byte, error)
- func (_mock *MockConfigService) Object(ctx context.Context, kind string, id string) (configstore.ObjectView, error)
- func (_mock *MockConfigService) Overview(ctx context.Context) (configstore.Overview, error)
- func (_mock *MockConfigService) Probe(ctx context.Context, by string, cs []configstore.Change, device string) (service.ProbeResult, error)
- func (_mock *MockConfigService) PutObject(ctx context.Context, by string, kind string, id string, body map[string]any) (configstore.ObjectView, int64, error)
- func (_mock *MockConfigService) PutObjects(ctx context.Context, by string, cs []configstore.Change) (configstore.Overview, error)
- func (_mock *MockConfigService) PutSettings(ctx context.Context, by string, set map[string]any) (configstore.Overview, error)
- type MockConfigService_DeleteObject_Call
- func (_c *MockConfigService_DeleteObject_Call) Return(n int64, err error) *MockConfigService_DeleteObject_Call
- func (_c *MockConfigService_DeleteObject_Call) Run(run func(ctx context.Context, by string, kind string, id string)) *MockConfigService_DeleteObject_Call
- func (_c *MockConfigService_DeleteObject_Call) RunAndReturn(...) *MockConfigService_DeleteObject_Call
- type MockConfigService_Expecter
- func (_e *MockConfigService_Expecter) DeleteObject(ctx any, by any, kind any, id any) *MockConfigService_DeleteObject_Call
- func (_e *MockConfigService_Expecter) Export(ctx any) *MockConfigService_Export_Call
- func (_e *MockConfigService_Expecter) Object(ctx any, kind any, id any) *MockConfigService_Object_Call
- func (_e *MockConfigService_Expecter) Overview(ctx any) *MockConfigService_Overview_Call
- func (_e *MockConfigService_Expecter) Probe(ctx any, by any, cs any, device any) *MockConfigService_Probe_Call
- func (_e *MockConfigService_Expecter) PutObject(ctx any, by any, kind any, id any, body any) *MockConfigService_PutObject_Call
- func (_e *MockConfigService_Expecter) PutObjects(ctx any, by any, cs any) *MockConfigService_PutObjects_Call
- func (_e *MockConfigService_Expecter) PutSettings(ctx any, by any, set any) *MockConfigService_PutSettings_Call
- type MockConfigService_Export_Call
- func (_c *MockConfigService_Export_Call) Return(bytes []byte, err error) *MockConfigService_Export_Call
- func (_c *MockConfigService_Export_Call) Run(run func(ctx context.Context)) *MockConfigService_Export_Call
- func (_c *MockConfigService_Export_Call) RunAndReturn(run func(ctx context.Context) ([]byte, error)) *MockConfigService_Export_Call
- type MockConfigService_Object_Call
- func (_c *MockConfigService_Object_Call) Return(objectView configstore.ObjectView, err error) *MockConfigService_Object_Call
- func (_c *MockConfigService_Object_Call) Run(run func(ctx context.Context, kind string, id string)) *MockConfigService_Object_Call
- func (_c *MockConfigService_Object_Call) RunAndReturn(...) *MockConfigService_Object_Call
- type MockConfigService_Overview_Call
- func (_c *MockConfigService_Overview_Call) Return(overview configstore.Overview, err error) *MockConfigService_Overview_Call
- func (_c *MockConfigService_Overview_Call) Run(run func(ctx context.Context)) *MockConfigService_Overview_Call
- func (_c *MockConfigService_Overview_Call) RunAndReturn(run func(ctx context.Context) (configstore.Overview, error)) *MockConfigService_Overview_Call
- type MockConfigService_Probe_Call
- type MockConfigService_PutObject_Call
- func (_c *MockConfigService_PutObject_Call) Return(objectView configstore.ObjectView, n int64, err error) *MockConfigService_PutObject_Call
- func (_c *MockConfigService_PutObject_Call) Run(...) *MockConfigService_PutObject_Call
- func (_c *MockConfigService_PutObject_Call) RunAndReturn(...) *MockConfigService_PutObject_Call
- type MockConfigService_PutObjects_Call
- func (_c *MockConfigService_PutObjects_Call) Return(overview configstore.Overview, err error) *MockConfigService_PutObjects_Call
- func (_c *MockConfigService_PutObjects_Call) Run(run func(ctx context.Context, by string, cs []configstore.Change)) *MockConfigService_PutObjects_Call
- func (_c *MockConfigService_PutObjects_Call) RunAndReturn(...) *MockConfigService_PutObjects_Call
- type MockConfigService_PutSettings_Call
- func (_c *MockConfigService_PutSettings_Call) Return(overview configstore.Overview, err error) *MockConfigService_PutSettings_Call
- func (_c *MockConfigService_PutSettings_Call) Run(run func(ctx context.Context, by string, set map[string]any)) *MockConfigService_PutSettings_Call
- func (_c *MockConfigService_PutSettings_Call) RunAndReturn(...) *MockConfigService_PutSettings_Call
- type MockDevicesService
- func (_m *MockDevicesService) EXPECT() *MockDevicesService_Expecter
- func (_mock *MockDevicesService) Get(id string) (service.DeviceDetail, error)
- func (_mock *MockDevicesService) List() []service.DeviceInfo
- func (_mock *MockDevicesService) Overview(ctx context.Context, from time.Time, to time.Time) ([]service.DeviceStatus, error)
- func (_mock *MockDevicesService) Status(ctx context.Context, id string, from time.Time, to time.Time) ([]service.StatusEventModel, error)
- type MockDevicesService_Expecter
- func (_e *MockDevicesService_Expecter) Get(id any) *MockDevicesService_Get_Call
- func (_e *MockDevicesService_Expecter) List() *MockDevicesService_List_Call
- func (_e *MockDevicesService_Expecter) Overview(ctx any, from any, to any) *MockDevicesService_Overview_Call
- func (_e *MockDevicesService_Expecter) Status(ctx any, id any, from any, to any) *MockDevicesService_Status_Call
- type MockDevicesService_Get_Call
- func (_c *MockDevicesService_Get_Call) Return(deviceDetail service.DeviceDetail, err error) *MockDevicesService_Get_Call
- func (_c *MockDevicesService_Get_Call) Run(run func(id string)) *MockDevicesService_Get_Call
- func (_c *MockDevicesService_Get_Call) RunAndReturn(run func(id string) (service.DeviceDetail, error)) *MockDevicesService_Get_Call
- type MockDevicesService_List_Call
- func (_c *MockDevicesService_List_Call) Return(deviceInfos []service.DeviceInfo) *MockDevicesService_List_Call
- func (_c *MockDevicesService_List_Call) Run(run func()) *MockDevicesService_List_Call
- func (_c *MockDevicesService_List_Call) RunAndReturn(run func() []service.DeviceInfo) *MockDevicesService_List_Call
- type MockDevicesService_Overview_Call
- func (_c *MockDevicesService_Overview_Call) Return(deviceStatuss []service.DeviceStatus, err error) *MockDevicesService_Overview_Call
- func (_c *MockDevicesService_Overview_Call) Run(run func(ctx context.Context, from time.Time, to time.Time)) *MockDevicesService_Overview_Call
- func (_c *MockDevicesService_Overview_Call) RunAndReturn(...) *MockDevicesService_Overview_Call
- type MockDevicesService_Status_Call
- func (_c *MockDevicesService_Status_Call) Return(statusEventModels []service.StatusEventModel, err error) *MockDevicesService_Status_Call
- func (_c *MockDevicesService_Status_Call) Run(run func(ctx context.Context, id string, from time.Time, to time.Time)) *MockDevicesService_Status_Call
- func (_c *MockDevicesService_Status_Call) RunAndReturn(...) *MockDevicesService_Status_Call
- type MockEnergyService
- type MockEnergyService_Expecter
- type MockEnergyService_Series_Call
- type MockGaugeService
- type MockGaugeService_Expecter
- type MockGaugeService_Series_Call
- func (_c *MockGaugeService_Series_Call) Return(gaugeModel service.GaugeModel, err error) *MockGaugeService_Series_Call
- func (_c *MockGaugeService_Series_Call) Run(run func(ctx context.Context, names []string, from time.Time, to time.Time)) *MockGaugeService_Series_Call
- func (_c *MockGaugeService_Series_Call) RunAndReturn(...) *MockGaugeService_Series_Call
- type MockHealthService
- type MockHealthService_Expecter
- type MockHealthService_Report_Call
- func (_c *MockHealthService_Report_Call) Return(healthReport service.HealthReport, n int) *MockHealthService_Report_Call
- func (_c *MockHealthService_Report_Call) Run(run func()) *MockHealthService_Report_Call
- func (_c *MockHealthService_Report_Call) RunAndReturn(run func() (service.HealthReport, int)) *MockHealthService_Report_Call
- type MockProfileLister
- type MockProfileLister_Expecter
- type MockProfileLister_List_Call
- func (_c *MockProfileLister_List_Call) Return(profileInfos []service.ProfileInfo) *MockProfileLister_List_Call
- func (_c *MockProfileLister_List_Call) Run(run func()) *MockProfileLister_List_Call
- func (_c *MockProfileLister_List_Call) RunAndReturn(run func() []service.ProfileInfo) *MockProfileLister_List_Call
- type MockReportService
- type MockReportService_Build_Call
- func (_c *MockReportService_Build_Call) Return(report1 report.Report, err error) *MockReportService_Build_Call
- func (_c *MockReportService_Build_Call) Run(run func(ctx context.Context, q service.ReportQuery)) *MockReportService_Build_Call
- func (_c *MockReportService_Build_Call) RunAndReturn(run func(ctx context.Context, q service.ReportQuery) (report.Report, error)) *MockReportService_Build_Call
- type MockReportService_Expecter
- type MockSiteService
- type MockSiteService_Expecter
- type MockSiteService_Model_Call
- func (_c *MockSiteService_Model_Call) Return(siteModel service.SiteModel, err error) *MockSiteService_Model_Call
- func (_c *MockSiteService_Model_Call) Run(run func(ctx context.Context)) *MockSiteService_Model_Call
- func (_c *MockSiteService_Model_Call) RunAndReturn(run func(ctx context.Context) (service.SiteModel, error)) *MockSiteService_Model_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthService ¶
MockAuthService is an autogenerated mock type for the AuthService type
func NewMockAuthService ¶
func NewMockAuthService(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthService
NewMockAuthService creates a new instance of MockAuthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockAuthService) AddUser ¶
func (_mock *MockAuthService) AddUser(ctx context.Context, by auth.Principal, name string, pw string, lang string) (auth.UserInfo, error)
AddUser provides a mock function for the type MockAuthService
func (*MockAuthService) Audit ¶
func (_mock *MockAuthService) Audit(ctx context.Context, from time.Time, to time.Time) ([]auth.AuditInfo, error)
Audit provides a mock function for the type MockAuthService
func (*MockAuthService) CreateToken ¶
func (_mock *MockAuthService) CreateToken(ctx context.Context, by auth.Principal, name string, expires time.Duration) (auth.NewToken, error)
CreateToken provides a mock function for the type MockAuthService
func (*MockAuthService) DeleteUser ¶
DeleteUser provides a mock function for the type MockAuthService
func (*MockAuthService) EXPECT ¶
func (_m *MockAuthService) EXPECT() *MockAuthService_Expecter
func (*MockAuthService) Login ¶
func (_mock *MockAuthService) Login(ctx context.Context, name string, pw string, ip string) (auth.Login, error)
Login provides a mock function for the type MockAuthService
func (*MockAuthService) RevokeToken ¶
RevokeToken provides a mock function for the type MockAuthService
func (*MockAuthService) SetPassword ¶
func (_mock *MockAuthService) SetPassword(ctx context.Context, by auth.Principal, id int64, pw string) error
SetPassword provides a mock function for the type MockAuthService
func (*MockAuthService) Setup ¶
func (_mock *MockAuthService) Setup(ctx context.Context, r auth.SetupRequest) (auth.Login, error)
Setup provides a mock function for the type MockAuthService
func (*MockAuthService) SetupRequired ¶
func (_mock *MockAuthService) SetupRequired(ctx context.Context) (bool, error)
SetupRequired provides a mock function for the type MockAuthService
type MockAuthService_AddUser_Call ¶
MockAuthService_AddUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddUser'
func (*MockAuthService_AddUser_Call) Return ¶
func (_c *MockAuthService_AddUser_Call) Return(userInfo auth.UserInfo, err error) *MockAuthService_AddUser_Call
func (*MockAuthService_AddUser_Call) Run ¶
func (_c *MockAuthService_AddUser_Call) Run(run func(ctx context.Context, by auth.Principal, name string, pw string, lang string)) *MockAuthService_AddUser_Call
func (*MockAuthService_AddUser_Call) RunAndReturn ¶
type MockAuthService_Audit_Call ¶
MockAuthService_Audit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audit'
func (*MockAuthService_Audit_Call) Return ¶
func (_c *MockAuthService_Audit_Call) Return(auditInfos []auth.AuditInfo, err error) *MockAuthService_Audit_Call
func (*MockAuthService_Audit_Call) Run ¶
func (_c *MockAuthService_Audit_Call) Run(run func(ctx context.Context, from time.Time, to time.Time)) *MockAuthService_Audit_Call
func (*MockAuthService_Audit_Call) RunAndReturn ¶
type MockAuthService_CreateToken_Call ¶
MockAuthService_CreateToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateToken'
func (*MockAuthService_CreateToken_Call) Return ¶
func (_c *MockAuthService_CreateToken_Call) Return(newToken auth.NewToken, err error) *MockAuthService_CreateToken_Call
func (*MockAuthService_CreateToken_Call) Run ¶
func (_c *MockAuthService_CreateToken_Call) Run(run func(ctx context.Context, by auth.Principal, name string, expires time.Duration)) *MockAuthService_CreateToken_Call
func (*MockAuthService_CreateToken_Call) RunAndReturn ¶
type MockAuthService_DeleteUser_Call ¶
MockAuthService_DeleteUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUser'
func (*MockAuthService_DeleteUser_Call) Return ¶
func (_c *MockAuthService_DeleteUser_Call) Return(err error) *MockAuthService_DeleteUser_Call
func (*MockAuthService_DeleteUser_Call) Run ¶
func (_c *MockAuthService_DeleteUser_Call) Run(run func(ctx context.Context, by auth.Principal, id int64)) *MockAuthService_DeleteUser_Call
func (*MockAuthService_DeleteUser_Call) RunAndReturn ¶
func (_c *MockAuthService_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id int64) error) *MockAuthService_DeleteUser_Call
type MockAuthService_Expecter ¶
type MockAuthService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthService_Expecter) AddUser ¶
func (_e *MockAuthService_Expecter) AddUser(ctx any, by any, name any, pw any, lang any) *MockAuthService_AddUser_Call
AddUser is a helper method to define mock.On call
- ctx context.Context
- by auth.Principal
- name string
- pw string
- lang string
func (*MockAuthService_Expecter) Audit ¶
func (_e *MockAuthService_Expecter) Audit(ctx any, from any, to any) *MockAuthService_Audit_Call
Audit is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- to time.Time
func (*MockAuthService_Expecter) CreateToken ¶
func (_e *MockAuthService_Expecter) CreateToken(ctx any, by any, name any, expires any) *MockAuthService_CreateToken_Call
CreateToken is a helper method to define mock.On call
- ctx context.Context
- by auth.Principal
- name string
- expires time.Duration
func (*MockAuthService_Expecter) DeleteUser ¶
func (_e *MockAuthService_Expecter) DeleteUser(ctx any, by any, id any) *MockAuthService_DeleteUser_Call
DeleteUser is a helper method to define mock.On call
- ctx context.Context
- by auth.Principal
- id int64
func (*MockAuthService_Expecter) Login ¶
func (_e *MockAuthService_Expecter) Login(ctx any, name any, pw any, ip any) *MockAuthService_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- name string
- pw string
- ip string
func (*MockAuthService_Expecter) Logout ¶
func (_e *MockAuthService_Expecter) Logout(ctx any, p any) *MockAuthService_Logout_Call
Logout is a helper method to define mock.On call
- ctx context.Context
- p auth.Principal
func (*MockAuthService_Expecter) RevokeToken ¶
func (_e *MockAuthService_Expecter) RevokeToken(ctx any, by any, id any) *MockAuthService_RevokeToken_Call
RevokeToken is a helper method to define mock.On call
- ctx context.Context
- by auth.Principal
- id string
func (*MockAuthService_Expecter) SetPassword ¶
func (_e *MockAuthService_Expecter) SetPassword(ctx any, by any, id any, pw any) *MockAuthService_SetPassword_Call
SetPassword is a helper method to define mock.On call
- ctx context.Context
- by auth.Principal
- id int64
- pw string
func (*MockAuthService_Expecter) Setup ¶
func (_e *MockAuthService_Expecter) Setup(ctx any, r any) *MockAuthService_Setup_Call
Setup is a helper method to define mock.On call
- ctx context.Context
- r auth.SetupRequest
func (*MockAuthService_Expecter) SetupRequired ¶
func (_e *MockAuthService_Expecter) SetupRequired(ctx any) *MockAuthService_SetupRequired_Call
SetupRequired is a helper method to define mock.On call
- ctx context.Context
func (*MockAuthService_Expecter) Tokens ¶
func (_e *MockAuthService_Expecter) Tokens(ctx any) *MockAuthService_Tokens_Call
Tokens is a helper method to define mock.On call
- ctx context.Context
func (*MockAuthService_Expecter) Users ¶
func (_e *MockAuthService_Expecter) Users(ctx any) *MockAuthService_Users_Call
Users is a helper method to define mock.On call
- ctx context.Context
type MockAuthService_Login_Call ¶
MockAuthService_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*MockAuthService_Login_Call) Return ¶
func (_c *MockAuthService_Login_Call) Return(login auth.Login, err error) *MockAuthService_Login_Call
func (*MockAuthService_Login_Call) Run ¶
func (_c *MockAuthService_Login_Call) Run(run func(ctx context.Context, name string, pw string, ip string)) *MockAuthService_Login_Call
func (*MockAuthService_Login_Call) RunAndReturn ¶
func (_c *MockAuthService_Login_Call) RunAndReturn(run func(ctx context.Context, name string, pw string, ip string) (auth.Login, error)) *MockAuthService_Login_Call
type MockAuthService_Logout_Call ¶
MockAuthService_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'
func (*MockAuthService_Logout_Call) Return ¶
func (_c *MockAuthService_Logout_Call) Return(err error) *MockAuthService_Logout_Call
func (*MockAuthService_Logout_Call) Run ¶
func (_c *MockAuthService_Logout_Call) Run(run func(ctx context.Context, p auth.Principal)) *MockAuthService_Logout_Call
func (*MockAuthService_Logout_Call) RunAndReturn ¶
func (_c *MockAuthService_Logout_Call) RunAndReturn(run func(ctx context.Context, p auth.Principal) error) *MockAuthService_Logout_Call
type MockAuthService_RevokeToken_Call ¶
MockAuthService_RevokeToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RevokeToken'
func (*MockAuthService_RevokeToken_Call) Return ¶
func (_c *MockAuthService_RevokeToken_Call) Return(err error) *MockAuthService_RevokeToken_Call
func (*MockAuthService_RevokeToken_Call) Run ¶
func (_c *MockAuthService_RevokeToken_Call) Run(run func(ctx context.Context, by auth.Principal, id string)) *MockAuthService_RevokeToken_Call
func (*MockAuthService_RevokeToken_Call) RunAndReturn ¶
func (_c *MockAuthService_RevokeToken_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id string) error) *MockAuthService_RevokeToken_Call
type MockAuthService_SetPassword_Call ¶
MockAuthService_SetPassword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPassword'
func (*MockAuthService_SetPassword_Call) Return ¶
func (_c *MockAuthService_SetPassword_Call) Return(err error) *MockAuthService_SetPassword_Call
func (*MockAuthService_SetPassword_Call) Run ¶
func (_c *MockAuthService_SetPassword_Call) Run(run func(ctx context.Context, by auth.Principal, id int64, pw string)) *MockAuthService_SetPassword_Call
func (*MockAuthService_SetPassword_Call) RunAndReturn ¶
func (_c *MockAuthService_SetPassword_Call) RunAndReturn(run func(ctx context.Context, by auth.Principal, id int64, pw string) error) *MockAuthService_SetPassword_Call
type MockAuthService_SetupRequired_Call ¶
MockAuthService_SetupRequired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupRequired'
func (*MockAuthService_SetupRequired_Call) Return ¶
func (_c *MockAuthService_SetupRequired_Call) Return(b bool, err error) *MockAuthService_SetupRequired_Call
func (*MockAuthService_SetupRequired_Call) Run ¶
func (_c *MockAuthService_SetupRequired_Call) Run(run func(ctx context.Context)) *MockAuthService_SetupRequired_Call
func (*MockAuthService_SetupRequired_Call) RunAndReturn ¶
func (_c *MockAuthService_SetupRequired_Call) RunAndReturn(run func(ctx context.Context) (bool, error)) *MockAuthService_SetupRequired_Call
type MockAuthService_Setup_Call ¶
MockAuthService_Setup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Setup'
func (*MockAuthService_Setup_Call) Return ¶
func (_c *MockAuthService_Setup_Call) Return(login auth.Login, err error) *MockAuthService_Setup_Call
func (*MockAuthService_Setup_Call) Run ¶
func (_c *MockAuthService_Setup_Call) Run(run func(ctx context.Context, r auth.SetupRequest)) *MockAuthService_Setup_Call
func (*MockAuthService_Setup_Call) RunAndReturn ¶
func (_c *MockAuthService_Setup_Call) RunAndReturn(run func(ctx context.Context, r auth.SetupRequest) (auth.Login, error)) *MockAuthService_Setup_Call
type MockAuthService_Tokens_Call ¶
MockAuthService_Tokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tokens'
func (*MockAuthService_Tokens_Call) Return ¶
func (_c *MockAuthService_Tokens_Call) Return(tokenInfos []auth.TokenInfo, err error) *MockAuthService_Tokens_Call
func (*MockAuthService_Tokens_Call) Run ¶
func (_c *MockAuthService_Tokens_Call) Run(run func(ctx context.Context)) *MockAuthService_Tokens_Call
func (*MockAuthService_Tokens_Call) RunAndReturn ¶
func (_c *MockAuthService_Tokens_Call) RunAndReturn(run func(ctx context.Context) ([]auth.TokenInfo, error)) *MockAuthService_Tokens_Call
type MockAuthService_Users_Call ¶
MockAuthService_Users_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Users'
func (*MockAuthService_Users_Call) Return ¶
func (_c *MockAuthService_Users_Call) Return(userInfos []auth.UserInfo, err error) *MockAuthService_Users_Call
func (*MockAuthService_Users_Call) Run ¶
func (_c *MockAuthService_Users_Call) Run(run func(ctx context.Context)) *MockAuthService_Users_Call
func (*MockAuthService_Users_Call) RunAndReturn ¶
func (_c *MockAuthService_Users_Call) RunAndReturn(run func(ctx context.Context) ([]auth.UserInfo, error)) *MockAuthService_Users_Call
type MockConfigService ¶
MockConfigService is an autogenerated mock type for the ConfigService type
func NewMockConfigService ¶
func NewMockConfigService(t interface {
mock.TestingT
Cleanup(func())
}) *MockConfigService
NewMockConfigService creates a new instance of MockConfigService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockConfigService) DeleteObject ¶
func (_mock *MockConfigService) DeleteObject(ctx context.Context, by string, kind string, id string) (int64, error)
DeleteObject provides a mock function for the type MockConfigService
func (*MockConfigService) EXPECT ¶
func (_m *MockConfigService) EXPECT() *MockConfigService_Expecter
func (*MockConfigService) Export ¶
func (_mock *MockConfigService) Export(ctx context.Context) ([]byte, error)
Export provides a mock function for the type MockConfigService
func (*MockConfigService) Object ¶
func (_mock *MockConfigService) Object(ctx context.Context, kind string, id string) (configstore.ObjectView, error)
Object provides a mock function for the type MockConfigService
func (*MockConfigService) Overview ¶
func (_mock *MockConfigService) Overview(ctx context.Context) (configstore.Overview, error)
Overview provides a mock function for the type MockConfigService
func (*MockConfigService) Probe ¶
func (_mock *MockConfigService) Probe(ctx context.Context, by string, cs []configstore.Change, device string) (service.ProbeResult, error)
Probe provides a mock function for the type MockConfigService
func (*MockConfigService) PutObject ¶
func (_mock *MockConfigService) PutObject(ctx context.Context, by string, kind string, id string, body map[string]any) (configstore.ObjectView, int64, error)
PutObject provides a mock function for the type MockConfigService
func (*MockConfigService) PutObjects ¶
func (_mock *MockConfigService) PutObjects(ctx context.Context, by string, cs []configstore.Change) (configstore.Overview, error)
PutObjects provides a mock function for the type MockConfigService
func (*MockConfigService) PutSettings ¶
func (_mock *MockConfigService) PutSettings(ctx context.Context, by string, set map[string]any) (configstore.Overview, error)
PutSettings provides a mock function for the type MockConfigService
type MockConfigService_DeleteObject_Call ¶
MockConfigService_DeleteObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteObject'
func (*MockConfigService_DeleteObject_Call) Return ¶
func (_c *MockConfigService_DeleteObject_Call) Return(n int64, err error) *MockConfigService_DeleteObject_Call
func (*MockConfigService_DeleteObject_Call) Run ¶
func (_c *MockConfigService_DeleteObject_Call) Run(run func(ctx context.Context, by string, kind string, id string)) *MockConfigService_DeleteObject_Call
func (*MockConfigService_DeleteObject_Call) RunAndReturn ¶
func (_c *MockConfigService_DeleteObject_Call) RunAndReturn(run func(ctx context.Context, by string, kind string, id string) (int64, error)) *MockConfigService_DeleteObject_Call
type MockConfigService_Expecter ¶
type MockConfigService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConfigService_Expecter) DeleteObject ¶
func (_e *MockConfigService_Expecter) DeleteObject(ctx any, by any, kind any, id any) *MockConfigService_DeleteObject_Call
DeleteObject is a helper method to define mock.On call
- ctx context.Context
- by string
- kind string
- id string
func (*MockConfigService_Expecter) Export ¶
func (_e *MockConfigService_Expecter) Export(ctx any) *MockConfigService_Export_Call
Export is a helper method to define mock.On call
- ctx context.Context
func (*MockConfigService_Expecter) Object ¶
func (_e *MockConfigService_Expecter) Object(ctx any, kind any, id any) *MockConfigService_Object_Call
Object is a helper method to define mock.On call
- ctx context.Context
- kind string
- id string
func (*MockConfigService_Expecter) Overview ¶
func (_e *MockConfigService_Expecter) Overview(ctx any) *MockConfigService_Overview_Call
Overview is a helper method to define mock.On call
- ctx context.Context
func (*MockConfigService_Expecter) Probe ¶
func (_e *MockConfigService_Expecter) Probe(ctx any, by any, cs any, device any) *MockConfigService_Probe_Call
Probe is a helper method to define mock.On call
- ctx context.Context
- by string
- cs []configstore.Change
- device string
func (*MockConfigService_Expecter) PutObject ¶
func (_e *MockConfigService_Expecter) PutObject(ctx any, by any, kind any, id any, body any) *MockConfigService_PutObject_Call
PutObject is a helper method to define mock.On call
- ctx context.Context
- by string
- kind string
- id string
- body map[string]any
func (*MockConfigService_Expecter) PutObjects ¶
func (_e *MockConfigService_Expecter) PutObjects(ctx any, by any, cs any) *MockConfigService_PutObjects_Call
PutObjects is a helper method to define mock.On call
- ctx context.Context
- by string
- cs []configstore.Change
func (*MockConfigService_Expecter) PutSettings ¶
func (_e *MockConfigService_Expecter) PutSettings(ctx any, by any, set any) *MockConfigService_PutSettings_Call
PutSettings is a helper method to define mock.On call
- ctx context.Context
- by string
- set map[string]any
type MockConfigService_Export_Call ¶
MockConfigService_Export_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Export'
func (*MockConfigService_Export_Call) Return ¶
func (_c *MockConfigService_Export_Call) Return(bytes []byte, err error) *MockConfigService_Export_Call
func (*MockConfigService_Export_Call) Run ¶
func (_c *MockConfigService_Export_Call) Run(run func(ctx context.Context)) *MockConfigService_Export_Call
func (*MockConfigService_Export_Call) RunAndReturn ¶
func (_c *MockConfigService_Export_Call) RunAndReturn(run func(ctx context.Context) ([]byte, error)) *MockConfigService_Export_Call
type MockConfigService_Object_Call ¶
MockConfigService_Object_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Object'
func (*MockConfigService_Object_Call) Return ¶
func (_c *MockConfigService_Object_Call) Return(objectView configstore.ObjectView, err error) *MockConfigService_Object_Call
func (*MockConfigService_Object_Call) Run ¶
func (_c *MockConfigService_Object_Call) Run(run func(ctx context.Context, kind string, id string)) *MockConfigService_Object_Call
func (*MockConfigService_Object_Call) RunAndReturn ¶
func (_c *MockConfigService_Object_Call) RunAndReturn(run func(ctx context.Context, kind string, id string) (configstore.ObjectView, error)) *MockConfigService_Object_Call
type MockConfigService_Overview_Call ¶
MockConfigService_Overview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Overview'
func (*MockConfigService_Overview_Call) Return ¶
func (_c *MockConfigService_Overview_Call) Return(overview configstore.Overview, err error) *MockConfigService_Overview_Call
func (*MockConfigService_Overview_Call) Run ¶
func (_c *MockConfigService_Overview_Call) Run(run func(ctx context.Context)) *MockConfigService_Overview_Call
func (*MockConfigService_Overview_Call) RunAndReturn ¶
func (_c *MockConfigService_Overview_Call) RunAndReturn(run func(ctx context.Context) (configstore.Overview, error)) *MockConfigService_Overview_Call
type MockConfigService_Probe_Call ¶
MockConfigService_Probe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Probe'
func (*MockConfigService_Probe_Call) Return ¶
func (_c *MockConfigService_Probe_Call) Return(probeResult service.ProbeResult, err error) *MockConfigService_Probe_Call
func (*MockConfigService_Probe_Call) Run ¶
func (_c *MockConfigService_Probe_Call) Run(run func(ctx context.Context, by string, cs []configstore.Change, device string)) *MockConfigService_Probe_Call
func (*MockConfigService_Probe_Call) RunAndReturn ¶
func (_c *MockConfigService_Probe_Call) RunAndReturn(run func(ctx context.Context, by string, cs []configstore.Change, device string) (service.ProbeResult, error)) *MockConfigService_Probe_Call
type MockConfigService_PutObject_Call ¶
MockConfigService_PutObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutObject'
func (*MockConfigService_PutObject_Call) Return ¶
func (_c *MockConfigService_PutObject_Call) Return(objectView configstore.ObjectView, n int64, err error) *MockConfigService_PutObject_Call
func (*MockConfigService_PutObject_Call) Run ¶
func (_c *MockConfigService_PutObject_Call) Run(run func(ctx context.Context, by string, kind string, id string, body map[string]any)) *MockConfigService_PutObject_Call
func (*MockConfigService_PutObject_Call) RunAndReturn ¶
func (_c *MockConfigService_PutObject_Call) RunAndReturn(run func(ctx context.Context, by string, kind string, id string, body map[string]any) (configstore.ObjectView, int64, error)) *MockConfigService_PutObject_Call
type MockConfigService_PutObjects_Call ¶
MockConfigService_PutObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutObjects'
func (*MockConfigService_PutObjects_Call) Return ¶
func (_c *MockConfigService_PutObjects_Call) Return(overview configstore.Overview, err error) *MockConfigService_PutObjects_Call
func (*MockConfigService_PutObjects_Call) Run ¶
func (_c *MockConfigService_PutObjects_Call) Run(run func(ctx context.Context, by string, cs []configstore.Change)) *MockConfigService_PutObjects_Call
func (*MockConfigService_PutObjects_Call) RunAndReturn ¶
func (_c *MockConfigService_PutObjects_Call) RunAndReturn(run func(ctx context.Context, by string, cs []configstore.Change) (configstore.Overview, error)) *MockConfigService_PutObjects_Call
type MockConfigService_PutSettings_Call ¶
MockConfigService_PutSettings_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutSettings'
func (*MockConfigService_PutSettings_Call) Return ¶
func (_c *MockConfigService_PutSettings_Call) Return(overview configstore.Overview, err error) *MockConfigService_PutSettings_Call
func (*MockConfigService_PutSettings_Call) Run ¶
func (_c *MockConfigService_PutSettings_Call) Run(run func(ctx context.Context, by string, set map[string]any)) *MockConfigService_PutSettings_Call
func (*MockConfigService_PutSettings_Call) RunAndReturn ¶
func (_c *MockConfigService_PutSettings_Call) RunAndReturn(run func(ctx context.Context, by string, set map[string]any) (configstore.Overview, error)) *MockConfigService_PutSettings_Call
type MockDevicesService ¶
MockDevicesService is an autogenerated mock type for the DevicesService type
func NewMockDevicesService ¶
func NewMockDevicesService(t interface {
mock.TestingT
Cleanup(func())
}) *MockDevicesService
NewMockDevicesService creates a new instance of MockDevicesService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockDevicesService) EXPECT ¶
func (_m *MockDevicesService) EXPECT() *MockDevicesService_Expecter
func (*MockDevicesService) Get ¶
func (_mock *MockDevicesService) Get(id string) (service.DeviceDetail, error)
Get provides a mock function for the type MockDevicesService
func (*MockDevicesService) List ¶
func (_mock *MockDevicesService) List() []service.DeviceInfo
List provides a mock function for the type MockDevicesService
type MockDevicesService_Expecter ¶
type MockDevicesService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDevicesService_Expecter) Get ¶
func (_e *MockDevicesService_Expecter) Get(id any) *MockDevicesService_Get_Call
Get is a helper method to define mock.On call
- id string
func (*MockDevicesService_Expecter) List ¶
func (_e *MockDevicesService_Expecter) List() *MockDevicesService_List_Call
List is a helper method to define mock.On call
func (*MockDevicesService_Expecter) Overview ¶
func (_e *MockDevicesService_Expecter) Overview(ctx any, from any, to any) *MockDevicesService_Overview_Call
Overview is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- to time.Time
func (*MockDevicesService_Expecter) Status ¶
func (_e *MockDevicesService_Expecter) Status(ctx any, id any, from any, to any) *MockDevicesService_Status_Call
Status is a helper method to define mock.On call
- ctx context.Context
- id string
- from time.Time
- to time.Time
type MockDevicesService_Get_Call ¶
MockDevicesService_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockDevicesService_Get_Call) Return ¶
func (_c *MockDevicesService_Get_Call) Return(deviceDetail service.DeviceDetail, err error) *MockDevicesService_Get_Call
func (*MockDevicesService_Get_Call) Run ¶
func (_c *MockDevicesService_Get_Call) Run(run func(id string)) *MockDevicesService_Get_Call
func (*MockDevicesService_Get_Call) RunAndReturn ¶
func (_c *MockDevicesService_Get_Call) RunAndReturn(run func(id string) (service.DeviceDetail, error)) *MockDevicesService_Get_Call
type MockDevicesService_List_Call ¶
MockDevicesService_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockDevicesService_List_Call) Return ¶
func (_c *MockDevicesService_List_Call) Return(deviceInfos []service.DeviceInfo) *MockDevicesService_List_Call
func (*MockDevicesService_List_Call) Run ¶
func (_c *MockDevicesService_List_Call) Run(run func()) *MockDevicesService_List_Call
func (*MockDevicesService_List_Call) RunAndReturn ¶
func (_c *MockDevicesService_List_Call) RunAndReturn(run func() []service.DeviceInfo) *MockDevicesService_List_Call
type MockDevicesService_Overview_Call ¶
MockDevicesService_Overview_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Overview'
func (*MockDevicesService_Overview_Call) Return ¶
func (_c *MockDevicesService_Overview_Call) Return(deviceStatuss []service.DeviceStatus, err error) *MockDevicesService_Overview_Call
func (*MockDevicesService_Overview_Call) Run ¶
func (_c *MockDevicesService_Overview_Call) Run(run func(ctx context.Context, from time.Time, to time.Time)) *MockDevicesService_Overview_Call
func (*MockDevicesService_Overview_Call) RunAndReturn ¶
func (_c *MockDevicesService_Overview_Call) RunAndReturn(run func(ctx context.Context, from time.Time, to time.Time) ([]service.DeviceStatus, error)) *MockDevicesService_Overview_Call
type MockDevicesService_Status_Call ¶
MockDevicesService_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockDevicesService_Status_Call) Return ¶
func (_c *MockDevicesService_Status_Call) Return(statusEventModels []service.StatusEventModel, err error) *MockDevicesService_Status_Call
func (*MockDevicesService_Status_Call) Run ¶
func (_c *MockDevicesService_Status_Call) Run(run func(ctx context.Context, id string, from time.Time, to time.Time)) *MockDevicesService_Status_Call
func (*MockDevicesService_Status_Call) RunAndReturn ¶
func (_c *MockDevicesService_Status_Call) RunAndReturn(run func(ctx context.Context, id string, from time.Time, to time.Time) ([]service.StatusEventModel, error)) *MockDevicesService_Status_Call
type MockEnergyService ¶
MockEnergyService is an autogenerated mock type for the EnergyService type
func NewMockEnergyService ¶
func NewMockEnergyService(t interface {
mock.TestingT
Cleanup(func())
}) *MockEnergyService
NewMockEnergyService creates a new instance of MockEnergyService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockEnergyService) EXPECT ¶
func (_m *MockEnergyService) EXPECT() *MockEnergyService_Expecter
type MockEnergyService_Expecter ¶
type MockEnergyService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEnergyService_Expecter) Series ¶
func (_e *MockEnergyService_Expecter) Series(ctx any, names any, level any, from any, to any) *MockEnergyService_Series_Call
Series is a helper method to define mock.On call
- ctx context.Context
- names []string
- level string
- from time.Time
- to time.Time
type MockEnergyService_Series_Call ¶
MockEnergyService_Series_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Series'
func (*MockEnergyService_Series_Call) Return ¶
func (_c *MockEnergyService_Series_Call) Return(energyModel service.EnergyModel, err error) *MockEnergyService_Series_Call
func (*MockEnergyService_Series_Call) Run ¶
func (_c *MockEnergyService_Series_Call) Run(run func(ctx context.Context, names []string, level string, from time.Time, to time.Time)) *MockEnergyService_Series_Call
func (*MockEnergyService_Series_Call) RunAndReturn ¶
func (_c *MockEnergyService_Series_Call) RunAndReturn(run func(ctx context.Context, names []string, level string, from time.Time, to time.Time) (service.EnergyModel, error)) *MockEnergyService_Series_Call
type MockGaugeService ¶
MockGaugeService is an autogenerated mock type for the GaugeService type
func NewMockGaugeService ¶
func NewMockGaugeService(t interface {
mock.TestingT
Cleanup(func())
}) *MockGaugeService
NewMockGaugeService creates a new instance of MockGaugeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockGaugeService) EXPECT ¶
func (_m *MockGaugeService) EXPECT() *MockGaugeService_Expecter
type MockGaugeService_Expecter ¶
type MockGaugeService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGaugeService_Expecter) Series ¶
func (_e *MockGaugeService_Expecter) Series(ctx any, names any, from any, to any) *MockGaugeService_Series_Call
Series is a helper method to define mock.On call
- ctx context.Context
- names []string
- from time.Time
- to time.Time
type MockGaugeService_Series_Call ¶
MockGaugeService_Series_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Series'
func (*MockGaugeService_Series_Call) Return ¶
func (_c *MockGaugeService_Series_Call) Return(gaugeModel service.GaugeModel, err error) *MockGaugeService_Series_Call
func (*MockGaugeService_Series_Call) Run ¶
func (_c *MockGaugeService_Series_Call) Run(run func(ctx context.Context, names []string, from time.Time, to time.Time)) *MockGaugeService_Series_Call
func (*MockGaugeService_Series_Call) RunAndReturn ¶
func (_c *MockGaugeService_Series_Call) RunAndReturn(run func(ctx context.Context, names []string, from time.Time, to time.Time) (service.GaugeModel, error)) *MockGaugeService_Series_Call
type MockHealthService ¶
MockHealthService is an autogenerated mock type for the HealthService type
func NewMockHealthService ¶
func NewMockHealthService(t interface {
mock.TestingT
Cleanup(func())
}) *MockHealthService
NewMockHealthService creates a new instance of MockHealthService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockHealthService) EXPECT ¶
func (_m *MockHealthService) EXPECT() *MockHealthService_Expecter
func (*MockHealthService) Report ¶
func (_mock *MockHealthService) Report() (service.HealthReport, int)
Report provides a mock function for the type MockHealthService
type MockHealthService_Expecter ¶
type MockHealthService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockHealthService_Expecter) Report ¶
func (_e *MockHealthService_Expecter) Report() *MockHealthService_Report_Call
Report is a helper method to define mock.On call
type MockHealthService_Report_Call ¶
MockHealthService_Report_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Report'
func (*MockHealthService_Report_Call) Return ¶
func (_c *MockHealthService_Report_Call) Return(healthReport service.HealthReport, n int) *MockHealthService_Report_Call
func (*MockHealthService_Report_Call) Run ¶
func (_c *MockHealthService_Report_Call) Run(run func()) *MockHealthService_Report_Call
func (*MockHealthService_Report_Call) RunAndReturn ¶
func (_c *MockHealthService_Report_Call) RunAndReturn(run func() (service.HealthReport, int)) *MockHealthService_Report_Call
type MockProfileLister ¶
MockProfileLister is an autogenerated mock type for the ProfileLister type
func NewMockProfileLister ¶
func NewMockProfileLister(t interface {
mock.TestingT
Cleanup(func())
}) *MockProfileLister
NewMockProfileLister creates a new instance of MockProfileLister. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockProfileLister) EXPECT ¶
func (_m *MockProfileLister) EXPECT() *MockProfileLister_Expecter
func (*MockProfileLister) List ¶
func (_mock *MockProfileLister) List() []service.ProfileInfo
List provides a mock function for the type MockProfileLister
type MockProfileLister_Expecter ¶
type MockProfileLister_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProfileLister_Expecter) List ¶
func (_e *MockProfileLister_Expecter) List() *MockProfileLister_List_Call
List is a helper method to define mock.On call
type MockProfileLister_List_Call ¶
MockProfileLister_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockProfileLister_List_Call) Return ¶
func (_c *MockProfileLister_List_Call) Return(profileInfos []service.ProfileInfo) *MockProfileLister_List_Call
func (*MockProfileLister_List_Call) Run ¶
func (_c *MockProfileLister_List_Call) Run(run func()) *MockProfileLister_List_Call
func (*MockProfileLister_List_Call) RunAndReturn ¶
func (_c *MockProfileLister_List_Call) RunAndReturn(run func() []service.ProfileInfo) *MockProfileLister_List_Call
type MockReportService ¶
MockReportService is an autogenerated mock type for the ReportService type
func NewMockReportService ¶
func NewMockReportService(t interface {
mock.TestingT
Cleanup(func())
}) *MockReportService
NewMockReportService creates a new instance of MockReportService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockReportService) Build ¶
func (_mock *MockReportService) Build(ctx context.Context, q service.ReportQuery) (report.Report, error)
Build provides a mock function for the type MockReportService
func (*MockReportService) EXPECT ¶
func (_m *MockReportService) EXPECT() *MockReportService_Expecter
type MockReportService_Build_Call ¶
MockReportService_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
func (*MockReportService_Build_Call) Return ¶
func (_c *MockReportService_Build_Call) Return(report1 report.Report, err error) *MockReportService_Build_Call
func (*MockReportService_Build_Call) Run ¶
func (_c *MockReportService_Build_Call) Run(run func(ctx context.Context, q service.ReportQuery)) *MockReportService_Build_Call
func (*MockReportService_Build_Call) RunAndReturn ¶
func (_c *MockReportService_Build_Call) RunAndReturn(run func(ctx context.Context, q service.ReportQuery) (report.Report, error)) *MockReportService_Build_Call
type MockReportService_Expecter ¶
type MockReportService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReportService_Expecter) Build ¶
func (_e *MockReportService_Expecter) Build(ctx any, q any) *MockReportService_Build_Call
Build is a helper method to define mock.On call
- ctx context.Context
- q service.ReportQuery
type MockSiteService ¶
MockSiteService is an autogenerated mock type for the SiteService type
func NewMockSiteService ¶
func NewMockSiteService(t interface {
mock.TestingT
Cleanup(func())
}) *MockSiteService
NewMockSiteService creates a new instance of MockSiteService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockSiteService) EXPECT ¶
func (_m *MockSiteService) EXPECT() *MockSiteService_Expecter
type MockSiteService_Expecter ¶
type MockSiteService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSiteService_Expecter) Model ¶
func (_e *MockSiteService_Expecter) Model(ctx any) *MockSiteService_Model_Call
Model is a helper method to define mock.On call
- ctx context.Context
type MockSiteService_Model_Call ¶
MockSiteService_Model_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Model'
func (*MockSiteService_Model_Call) Return ¶
func (_c *MockSiteService_Model_Call) Return(siteModel service.SiteModel, err error) *MockSiteService_Model_Call
func (*MockSiteService_Model_Call) Run ¶
func (_c *MockSiteService_Model_Call) Run(run func(ctx context.Context)) *MockSiteService_Model_Call
func (*MockSiteService_Model_Call) RunAndReturn ¶
func (_c *MockSiteService_Model_Call) RunAndReturn(run func(ctx context.Context) (service.SiteModel, error)) *MockSiteService_Model_Call