Documentation ¶
Index ¶
- type AlertTransformer
- type AlertTransformer_Expecter
- type AlertTransformer_TransformToAlerts_Call
- func (_c *AlertTransformer_TransformToAlerts_Call) Return(_a0 []alert.Alert, _a1 int, _a2 error) *AlertTransformer_TransformToAlerts_Call
- func (_c *AlertTransformer_TransformToAlerts_Call) Run(run func(ctx context.Context, providerID uint64, namespaceID uint64, ...)) *AlertTransformer_TransformToAlerts_Call
- func (_c *AlertTransformer_TransformToAlerts_Call) RunAndReturn(...) *AlertTransformer_TransformToAlerts_Call
- type LogService
- type LogService_Expecter
- type LogService_ListAlertIDsBySilenceID_Call
- func (_c *LogService_ListAlertIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *LogService_ListAlertIDsBySilenceID_Call
- func (_c *LogService_ListAlertIDsBySilenceID_Call) Run(run func(ctx context.Context, silenceID string)) *LogService_ListAlertIDsBySilenceID_Call
- func (_c *LogService_ListAlertIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *LogService_ListAlertIDsBySilenceID_Call
- type NotificationService
- type NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) Return(_a0 []string, _a1 error) *NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification)) *NotificationService_Dispatch_Call
- func (_c *NotificationService_Dispatch_Call) RunAndReturn(run func(context.Context, []notification.Notification) ([]string, error)) *NotificationService_Dispatch_Call
- type NotificationService_Expecter
- type Repository
- func (_m *Repository) BulkUpdateSilence(_a0 context.Context, _a1 []int64, _a2 string) error
- func (_m *Repository) Create(_a0 context.Context, _a1 alert.Alert) (alert.Alert, error)
- func (_m *Repository) EXPECT() *Repository_Expecter
- func (_m *Repository) List(_a0 context.Context, _a1 alert.Filter) ([]alert.Alert, error)
- type Repository_BulkUpdateSilence_Call
- func (_c *Repository_BulkUpdateSilence_Call) Return(_a0 error) *Repository_BulkUpdateSilence_Call
- func (_c *Repository_BulkUpdateSilence_Call) Run(run func(_a0 context.Context, _a1 []int64, _a2 string)) *Repository_BulkUpdateSilence_Call
- func (_c *Repository_BulkUpdateSilence_Call) RunAndReturn(run func(context.Context, []int64, string) error) *Repository_BulkUpdateSilence_Call
- type Repository_Create_Call
- func (_c *Repository_Create_Call) Return(_a0 alert.Alert, _a1 error) *Repository_Create_Call
- func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 alert.Alert)) *Repository_Create_Call
- func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, alert.Alert) (alert.Alert, error)) *Repository_Create_Call
- type Repository_Expecter
- func (_e *Repository_Expecter) BulkUpdateSilence(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repository_BulkUpdateSilence_Call
- func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
- func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []alert.Alert, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, alert.Filter) ([]alert.Alert, error)) *Repository_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertTransformer ¶
AlertTransformer is an autogenerated mock type for the AlertTransformer type
func NewAlertTransformer ¶
func NewAlertTransformer(t interface { mock.TestingT Cleanup(func()) }) *AlertTransformer
NewAlertTransformer creates a new instance of AlertTransformer. 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 (*AlertTransformer) EXPECT ¶
func (_m *AlertTransformer) EXPECT() *AlertTransformer_Expecter
func (*AlertTransformer) TransformToAlerts ¶
func (_m *AlertTransformer) TransformToAlerts(ctx context.Context, providerID uint64, namespaceID uint64, body map[string]interface{}) ([]alert.Alert, int, error)
TransformToAlerts provides a mock function with given fields: ctx, providerID, namespaceID, body
type AlertTransformer_Expecter ¶
type AlertTransformer_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertTransformer_Expecter) TransformToAlerts ¶
func (_e *AlertTransformer_Expecter) TransformToAlerts(ctx interface{}, providerID interface{}, namespaceID interface{}, body interface{}) *AlertTransformer_TransformToAlerts_Call
TransformToAlerts is a helper method to define mock.On call
- ctx context.Context
- providerID uint64
- namespaceID uint64
- body map[string]interface{}
type AlertTransformer_TransformToAlerts_Call ¶
AlertTransformer_TransformToAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformToAlerts'
func (*AlertTransformer_TransformToAlerts_Call) Return ¶
func (_c *AlertTransformer_TransformToAlerts_Call) Return(_a0 []alert.Alert, _a1 int, _a2 error) *AlertTransformer_TransformToAlerts_Call
func (*AlertTransformer_TransformToAlerts_Call) Run ¶
func (_c *AlertTransformer_TransformToAlerts_Call) Run(run func(ctx context.Context, providerID uint64, namespaceID uint64, body map[string]interface{})) *AlertTransformer_TransformToAlerts_Call
func (*AlertTransformer_TransformToAlerts_Call) RunAndReturn ¶ added in v0.6.1
type LogService ¶
LogService is an autogenerated mock type for the LogService type
func NewLogService ¶
func NewLogService(t interface { mock.TestingT Cleanup(func()) }) *LogService
NewLogService creates a new instance of LogService. 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 (*LogService) EXPECT ¶
func (_m *LogService) EXPECT() *LogService_Expecter
func (*LogService) ListAlertIDsBySilenceID ¶ added in v0.6.1
func (_m *LogService) ListAlertIDsBySilenceID(ctx context.Context, silenceID string) ([]int64, error)
ListAlertIDsBySilenceID provides a mock function with given fields: ctx, silenceID
type LogService_Expecter ¶
type LogService_Expecter struct {
// contains filtered or unexported fields
}
func (*LogService_Expecter) ListAlertIDsBySilenceID ¶ added in v0.6.1
func (_e *LogService_Expecter) ListAlertIDsBySilenceID(ctx interface{}, silenceID interface{}) *LogService_ListAlertIDsBySilenceID_Call
ListAlertIDsBySilenceID is a helper method to define mock.On call
- ctx context.Context
- silenceID string
type LogService_ListAlertIDsBySilenceID_Call ¶ added in v0.6.1
LogService_ListAlertIDsBySilenceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAlertIDsBySilenceID'
func (*LogService_ListAlertIDsBySilenceID_Call) Return ¶ added in v0.6.1
func (_c *LogService_ListAlertIDsBySilenceID_Call) Return(_a0 []int64, _a1 error) *LogService_ListAlertIDsBySilenceID_Call
func (*LogService_ListAlertIDsBySilenceID_Call) Run ¶ added in v0.6.1
func (_c *LogService_ListAlertIDsBySilenceID_Call) Run(run func(ctx context.Context, silenceID string)) *LogService_ListAlertIDsBySilenceID_Call
func (*LogService_ListAlertIDsBySilenceID_Call) RunAndReturn ¶ added in v0.6.1
func (_c *LogService_ListAlertIDsBySilenceID_Call) RunAndReturn(run func(context.Context, string) ([]int64, error)) *LogService_ListAlertIDsBySilenceID_Call
type NotificationService ¶ added in v0.7.6
NotificationService is an autogenerated mock type for the NotificationService type
func NewNotificationService ¶ added in v0.7.6
func NewNotificationService(t interface { mock.TestingT Cleanup(func()) }) *NotificationService
NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) Dispatch ¶ added in v0.7.6
func (_m *NotificationService) Dispatch(_a0 context.Context, _a1 []notification.Notification) ([]string, error)
Dispatch provides a mock function with given fields: _a0, _a1
func (*NotificationService) EXPECT ¶ added in v0.7.6
func (_m *NotificationService) EXPECT() *NotificationService_Expecter
type NotificationService_Dispatch_Call ¶ added in v0.7.6
NotificationService_Dispatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dispatch'
func (*NotificationService_Dispatch_Call) Return ¶ added in v0.7.6
func (_c *NotificationService_Dispatch_Call) Return(_a0 []string, _a1 error) *NotificationService_Dispatch_Call
func (*NotificationService_Dispatch_Call) Run ¶ added in v0.7.6
func (_c *NotificationService_Dispatch_Call) Run(run func(_a0 context.Context, _a1 []notification.Notification)) *NotificationService_Dispatch_Call
func (*NotificationService_Dispatch_Call) RunAndReturn ¶ added in v0.7.6
func (_c *NotificationService_Dispatch_Call) RunAndReturn(run func(context.Context, []notification.Notification) ([]string, error)) *NotificationService_Dispatch_Call
type NotificationService_Expecter ¶ added in v0.7.6
type NotificationService_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationService_Expecter) Dispatch ¶ added in v0.7.6
func (_e *NotificationService_Expecter) Dispatch(_a0 interface{}, _a1 interface{}) *NotificationService_Dispatch_Call
Dispatch is a helper method to define mock.On call
- _a0 context.Context
- _a1 []notification.Notification
type Repository ¶ added in v0.6.12
Repository is an autogenerated mock type for the Repository type
func NewRepository ¶ added in v0.6.12
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) BulkUpdateSilence ¶ added in v0.6.12
BulkUpdateSilence provides a mock function with given fields: _a0, _a1, _a2
func (*Repository) Create ¶ added in v0.6.12
Create provides a mock function with given fields: _a0, _a1
func (*Repository) EXPECT ¶ added in v0.6.12
func (_m *Repository) EXPECT() *Repository_Expecter
type Repository_BulkUpdateSilence_Call ¶ added in v0.6.12
Repository_BulkUpdateSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BulkUpdateSilence'
func (*Repository_BulkUpdateSilence_Call) Return ¶ added in v0.6.12
func (_c *Repository_BulkUpdateSilence_Call) Return(_a0 error) *Repository_BulkUpdateSilence_Call
func (*Repository_BulkUpdateSilence_Call) Run ¶ added in v0.6.12
func (_c *Repository_BulkUpdateSilence_Call) Run(run func(_a0 context.Context, _a1 []int64, _a2 string)) *Repository_BulkUpdateSilence_Call
func (*Repository_BulkUpdateSilence_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_BulkUpdateSilence_Call) RunAndReturn(run func(context.Context, []int64, string) error) *Repository_BulkUpdateSilence_Call
type Repository_Create_Call ¶ added in v0.6.12
Repository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Repository_Create_Call) Return ¶ added in v0.6.12
func (_c *Repository_Create_Call) Return(_a0 alert.Alert, _a1 error) *Repository_Create_Call
func (*Repository_Create_Call) Run ¶ added in v0.6.12
func (_c *Repository_Create_Call) Run(run func(_a0 context.Context, _a1 alert.Alert)) *Repository_Create_Call
func (*Repository_Create_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_Create_Call) RunAndReturn(run func(context.Context, alert.Alert) (alert.Alert, error)) *Repository_Create_Call
type Repository_Expecter ¶ added in v0.6.12
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) BulkUpdateSilence ¶ added in v0.6.12
func (_e *Repository_Expecter) BulkUpdateSilence(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Repository_BulkUpdateSilence_Call
BulkUpdateSilence is a helper method to define mock.On call
- _a0 context.Context
- _a1 []int64
- _a2 string
func (*Repository_Expecter) Create ¶ added in v0.6.12
func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call
Create is a helper method to define mock.On call
- _a0 context.Context
- _a1 alert.Alert
func (*Repository_Expecter) List ¶ added in v0.6.12
func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 alert.Filter
type Repository_List_Call ¶ added in v0.6.12
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶ added in v0.6.12
func (_c *Repository_List_Call) Return(_a0 []alert.Alert, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶ added in v0.6.12
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 alert.Filter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶ added in v0.6.12
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, alert.Filter) ([]alert.Alert, error)) *Repository_List_Call