Documentation
¶
Index ¶
- type LogEntry
- type MockMonitorService
- func (_m *MockMonitorService) EXPECT() *MockMonitorService_Expecter
- func (_m *MockMonitorService) GetLogs(ctx context.Context, configMap *config.ConfigMap, query string, ...) ([]LogEntry, error)
- func (_m *MockMonitorService) GetResourceDiagnosticSetting(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, ...) (*ResourceDiagnosticSetting, error)
- func (_m *MockMonitorService) HasLogsEnabled(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, ...) (bool, error)
- type MockMonitorService_Expecter
- func (_e *MockMonitorService_Expecter) GetLogs(ctx interface{}, configMap interface{}, query interface{}, ...) *MockMonitorService_GetLogs_Call
- func (_e *MockMonitorService_Expecter) GetResourceDiagnosticSetting(ctx interface{}, configMap interface{}, resourceGroup interface{}, ...) *MockMonitorService_GetResourceDiagnosticSetting_Call
- func (_e *MockMonitorService_Expecter) HasLogsEnabled(ctx interface{}, configMap interface{}, resourceGroup interface{}, ...) *MockMonitorService_HasLogsEnabled_Call
- type MockMonitorService_GetLogs_Call
- func (_c *MockMonitorService_GetLogs_Call) Return(_a0 []LogEntry, _a1 error) *MockMonitorService_GetLogs_Call
- func (_c *MockMonitorService_GetLogs_Call) Run(run func(ctx context.Context, configMap *config.ConfigMap, query string, ...)) *MockMonitorService_GetLogs_Call
- func (_c *MockMonitorService_GetLogs_Call) RunAndReturn(...) *MockMonitorService_GetLogs_Call
- type MockMonitorService_GetResourceDiagnosticSetting_Call
- func (_c *MockMonitorService_GetResourceDiagnosticSetting_Call) Return(_a0 *ResourceDiagnosticSetting, _a1 error) *MockMonitorService_GetResourceDiagnosticSetting_Call
- func (_c *MockMonitorService_GetResourceDiagnosticSetting_Call) Run(...) *MockMonitorService_GetResourceDiagnosticSetting_Call
- func (_c *MockMonitorService_GetResourceDiagnosticSetting_Call) RunAndReturn(...) *MockMonitorService_GetResourceDiagnosticSetting_Call
- type MockMonitorService_HasLogsEnabled_Call
- func (_c *MockMonitorService_HasLogsEnabled_Call) Return(_a0 bool, _a1 error) *MockMonitorService_HasLogsEnabled_Call
- func (_c *MockMonitorService_HasLogsEnabled_Call) Run(...) *MockMonitorService_HasLogsEnabled_Call
- func (_c *MockMonitorService_HasLogsEnabled_Call) RunAndReturn(...) *MockMonitorService_HasLogsEnabled_Call
- type MonitorService
- type ResourceDiagnosticSetting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEntry ¶
type MockMonitorService ¶
MockMonitorService is an autogenerated mock type for the MonitorService type
func NewMockMonitorService ¶
func NewMockMonitorService(t interface {
mock.TestingT
Cleanup(func())
}) *MockMonitorService
NewMockMonitorService creates a new instance of MockMonitorService. 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 (*MockMonitorService) EXPECT ¶
func (_m *MockMonitorService) EXPECT() *MockMonitorService_Expecter
func (*MockMonitorService) GetLogs ¶
func (_m *MockMonitorService) GetLogs(ctx context.Context, configMap *config.ConfigMap, query string, startDate time.Time, resourceGroup string, nameSpace string, resourceType string, resourceName string) ([]LogEntry, error)
GetLogs provides a mock function with given fields: ctx, configMap, query, startDate, resourceGroup, nameSpace, resourceType, resourceName
func (*MockMonitorService) GetResourceDiagnosticSetting ¶
func (_m *MockMonitorService) GetResourceDiagnosticSetting(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, nameSpace string, resourceType string, resourceName string) (*ResourceDiagnosticSetting, error)
GetResourceDiagnosticSetting provides a mock function with given fields: ctx, configMap, resourceGroup, nameSpace, resourceType, resourceName
func (*MockMonitorService) HasLogsEnabled ¶
func (_m *MockMonitorService) HasLogsEnabled(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, nameSpace string, resourceType string, resourceName string) (bool, error)
HasLogsEnabled provides a mock function with given fields: ctx, configMap, resourceGroup, nameSpace, resourceType, resourceName
type MockMonitorService_Expecter ¶
type MockMonitorService_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMonitorService_Expecter) GetLogs ¶
func (_e *MockMonitorService_Expecter) GetLogs(ctx interface{}, configMap interface{}, query interface{}, startDate interface{}, resourceGroup interface{}, nameSpace interface{}, resourceType interface{}, resourceName interface{}) *MockMonitorService_GetLogs_Call
GetLogs is a helper method to define mock.On call
- ctx context.Context
- configMap *config.ConfigMap
- query string
- startDate time.Time
- resourceGroup string
- nameSpace string
- resourceType string
- resourceName string
func (*MockMonitorService_Expecter) GetResourceDiagnosticSetting ¶
func (_e *MockMonitorService_Expecter) GetResourceDiagnosticSetting(ctx interface{}, configMap interface{}, resourceGroup interface{}, nameSpace interface{}, resourceType interface{}, resourceName interface{}) *MockMonitorService_GetResourceDiagnosticSetting_Call
GetResourceDiagnosticSetting is a helper method to define mock.On call
- ctx context.Context
- configMap *config.ConfigMap
- resourceGroup string
- nameSpace string
- resourceType string
- resourceName string
func (*MockMonitorService_Expecter) HasLogsEnabled ¶
func (_e *MockMonitorService_Expecter) HasLogsEnabled(ctx interface{}, configMap interface{}, resourceGroup interface{}, nameSpace interface{}, resourceType interface{}, resourceName interface{}) *MockMonitorService_HasLogsEnabled_Call
HasLogsEnabled is a helper method to define mock.On call
- ctx context.Context
- configMap *config.ConfigMap
- resourceGroup string
- nameSpace string
- resourceType string
- resourceName string
type MockMonitorService_GetLogs_Call ¶
MockMonitorService_GetLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogs'
func (*MockMonitorService_GetLogs_Call) Return ¶
func (_c *MockMonitorService_GetLogs_Call) Return(_a0 []LogEntry, _a1 error) *MockMonitorService_GetLogs_Call
type MockMonitorService_GetResourceDiagnosticSetting_Call ¶
MockMonitorService_GetResourceDiagnosticSetting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResourceDiagnosticSetting'
func (*MockMonitorService_GetResourceDiagnosticSetting_Call) Run ¶
func (_c *MockMonitorService_GetResourceDiagnosticSetting_Call) Run(run func(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, nameSpace string, resourceType string, resourceName string)) *MockMonitorService_GetResourceDiagnosticSetting_Call
func (*MockMonitorService_GetResourceDiagnosticSetting_Call) RunAndReturn ¶
func (_c *MockMonitorService_GetResourceDiagnosticSetting_Call) RunAndReturn(run func(context.Context, *config.ConfigMap, string, string, string, string) (*ResourceDiagnosticSetting, error)) *MockMonitorService_GetResourceDiagnosticSetting_Call
type MockMonitorService_HasLogsEnabled_Call ¶
MockMonitorService_HasLogsEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasLogsEnabled'
func (*MockMonitorService_HasLogsEnabled_Call) Return ¶
func (_c *MockMonitorService_HasLogsEnabled_Call) Return(_a0 bool, _a1 error) *MockMonitorService_HasLogsEnabled_Call
func (*MockMonitorService_HasLogsEnabled_Call) Run ¶
func (_c *MockMonitorService_HasLogsEnabled_Call) Run(run func(ctx context.Context, configMap *config.ConfigMap, resourceGroup string, nameSpace string, resourceType string, resourceName string)) *MockMonitorService_HasLogsEnabled_Call
func (*MockMonitorService_HasLogsEnabled_Call) RunAndReturn ¶
type MonitorService ¶
type MonitorService interface {
HasLogsEnabled(ctx context.Context, configMap *config.ConfigMap, resourceGroup, nameSpace, resourceType, resourceName string) (bool, error)
GetResourceDiagnosticSetting(ctx context.Context, configMap *config.ConfigMap, resourceGroup, nameSpace, resourceType, resourceName string) (*ResourceDiagnosticSetting, error)
GetLogs(ctx context.Context, configMap *config.ConfigMap, query string, startDate time.Time, resourceGroup, nameSpace, resourceType, resourceName string) ([]LogEntry, error)
}
func NewMonitorService ¶
func NewMonitorService() MonitorService