Documentation ¶
Index ¶
- type AlertmanagerMock
- func (_m *AlertmanagerMock) ApplyConfig(_a0 context.Context, _a1 *models.AlertConfiguration) error
- func (_m *AlertmanagerMock) CreateSilence(_a0 context.Context, _a1 *v2models.PostableSilence) (string, error)
- func (_m *AlertmanagerMock) DeleteSilence(_a0 context.Context, _a1 string) error
- func (_m *AlertmanagerMock) EXPECT() *AlertmanagerMock_Expecter
- func (_m *AlertmanagerMock) GetAlertGroups(ctx context.Context, active bool, silenced bool, inhibited bool, ...) (v2models.AlertGroups, error)
- func (_m *AlertmanagerMock) GetAlerts(ctx context.Context, active bool, silenced bool, inhibited bool, ...) (v2models.GettableAlerts, error)
- func (_m *AlertmanagerMock) GetReceivers(ctx context.Context) ([]v2models.Receiver, error)
- func (_m *AlertmanagerMock) GetSilence(_a0 context.Context, _a1 string) (v2models.GettableSilence, error)
- func (_m *AlertmanagerMock) GetStatus(_a0 context.Context) (definitions.GettableStatus, error)
- func (_m *AlertmanagerMock) ListSilences(_a0 context.Context, _a1 []string) (v2models.GettableSilences, error)
- func (_m *AlertmanagerMock) PutAlerts(_a0 context.Context, _a1 definitions.PostableAlerts) error
- func (_m *AlertmanagerMock) Ready() bool
- func (_m *AlertmanagerMock) SaveAndApplyConfig(ctx context.Context, config *definitions.PostableUserConfig) error
- func (_m *AlertmanagerMock) SaveAndApplyDefaultConfig(ctx context.Context) error
- func (_m *AlertmanagerMock) SilenceState(_a0 context.Context) (notify.SilenceState, error)
- func (_m *AlertmanagerMock) StopAndWait()
- func (_m *AlertmanagerMock) TestReceivers(ctx context.Context, c definitions.TestReceiversConfigBodyParams) (*notifier.TestReceiversResult, error)
- func (_m *AlertmanagerMock) TestTemplate(ctx context.Context, c definitions.TestTemplatesConfigBodyParams) (*notify.TestTemplatesResults, error)
- type AlertmanagerMock_ApplyConfig_Call
- func (_c *AlertmanagerMock_ApplyConfig_Call) Return(_a0 error) *AlertmanagerMock_ApplyConfig_Call
- func (_c *AlertmanagerMock_ApplyConfig_Call) Run(run func(_a0 context.Context, _a1 *models.AlertConfiguration)) *AlertmanagerMock_ApplyConfig_Call
- func (_c *AlertmanagerMock_ApplyConfig_Call) RunAndReturn(run func(context.Context, *models.AlertConfiguration) error) *AlertmanagerMock_ApplyConfig_Call
- type AlertmanagerMock_CreateSilence_Call
- func (_c *AlertmanagerMock_CreateSilence_Call) Return(_a0 string, _a1 error) *AlertmanagerMock_CreateSilence_Call
- func (_c *AlertmanagerMock_CreateSilence_Call) Run(run func(_a0 context.Context, _a1 *v2models.PostableSilence)) *AlertmanagerMock_CreateSilence_Call
- func (_c *AlertmanagerMock_CreateSilence_Call) RunAndReturn(run func(context.Context, *v2models.PostableSilence) (string, error)) *AlertmanagerMock_CreateSilence_Call
- type AlertmanagerMock_DeleteSilence_Call
- func (_c *AlertmanagerMock_DeleteSilence_Call) Return(_a0 error) *AlertmanagerMock_DeleteSilence_Call
- func (_c *AlertmanagerMock_DeleteSilence_Call) Run(run func(_a0 context.Context, _a1 string)) *AlertmanagerMock_DeleteSilence_Call
- func (_c *AlertmanagerMock_DeleteSilence_Call) RunAndReturn(run func(context.Context, string) error) *AlertmanagerMock_DeleteSilence_Call
- type AlertmanagerMock_Expecter
- func (_e *AlertmanagerMock_Expecter) ApplyConfig(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_ApplyConfig_Call
- func (_e *AlertmanagerMock_Expecter) CreateSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_CreateSilence_Call
- func (_e *AlertmanagerMock_Expecter) DeleteSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_DeleteSilence_Call
- func (_e *AlertmanagerMock_Expecter) GetAlertGroups(ctx interface{}, active interface{}, silenced interface{}, ...) *AlertmanagerMock_GetAlertGroups_Call
- func (_e *AlertmanagerMock_Expecter) GetAlerts(ctx interface{}, active interface{}, silenced interface{}, ...) *AlertmanagerMock_GetAlerts_Call
- func (_e *AlertmanagerMock_Expecter) GetReceivers(ctx interface{}) *AlertmanagerMock_GetReceivers_Call
- func (_e *AlertmanagerMock_Expecter) GetSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_GetSilence_Call
- func (_e *AlertmanagerMock_Expecter) GetStatus(_a0 interface{}) *AlertmanagerMock_GetStatus_Call
- func (_e *AlertmanagerMock_Expecter) ListSilences(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_ListSilences_Call
- func (_e *AlertmanagerMock_Expecter) PutAlerts(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_PutAlerts_Call
- func (_e *AlertmanagerMock_Expecter) Ready() *AlertmanagerMock_Ready_Call
- func (_e *AlertmanagerMock_Expecter) SaveAndApplyConfig(ctx interface{}, config interface{}) *AlertmanagerMock_SaveAndApplyConfig_Call
- func (_e *AlertmanagerMock_Expecter) SaveAndApplyDefaultConfig(ctx interface{}) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
- func (_e *AlertmanagerMock_Expecter) SilenceState(_a0 interface{}) *AlertmanagerMock_SilenceState_Call
- func (_e *AlertmanagerMock_Expecter) StopAndWait() *AlertmanagerMock_StopAndWait_Call
- func (_e *AlertmanagerMock_Expecter) TestReceivers(ctx interface{}, c interface{}) *AlertmanagerMock_TestReceivers_Call
- func (_e *AlertmanagerMock_Expecter) TestTemplate(ctx interface{}, c interface{}) *AlertmanagerMock_TestTemplate_Call
- type AlertmanagerMock_GetAlertGroups_Call
- func (_c *AlertmanagerMock_GetAlertGroups_Call) Return(_a0 v2models.AlertGroups, _a1 error) *AlertmanagerMock_GetAlertGroups_Call
- func (_c *AlertmanagerMock_GetAlertGroups_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, ...)) *AlertmanagerMock_GetAlertGroups_Call
- func (_c *AlertmanagerMock_GetAlertGroups_Call) RunAndReturn(...) *AlertmanagerMock_GetAlertGroups_Call
- type AlertmanagerMock_GetAlerts_Call
- func (_c *AlertmanagerMock_GetAlerts_Call) Return(_a0 v2models.GettableAlerts, _a1 error) *AlertmanagerMock_GetAlerts_Call
- func (_c *AlertmanagerMock_GetAlerts_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, ...)) *AlertmanagerMock_GetAlerts_Call
- func (_c *AlertmanagerMock_GetAlerts_Call) RunAndReturn(...) *AlertmanagerMock_GetAlerts_Call
- type AlertmanagerMock_GetReceivers_Call
- func (_c *AlertmanagerMock_GetReceivers_Call) Return(_a0 []v2models.Receiver, _a1 error) *AlertmanagerMock_GetReceivers_Call
- func (_c *AlertmanagerMock_GetReceivers_Call) Run(run func(ctx context.Context)) *AlertmanagerMock_GetReceivers_Call
- func (_c *AlertmanagerMock_GetReceivers_Call) RunAndReturn(run func(context.Context) ([]v2models.Receiver, error)) *AlertmanagerMock_GetReceivers_Call
- type AlertmanagerMock_GetSilence_Call
- func (_c *AlertmanagerMock_GetSilence_Call) Return(_a0 v2models.GettableSilence, _a1 error) *AlertmanagerMock_GetSilence_Call
- func (_c *AlertmanagerMock_GetSilence_Call) Run(run func(_a0 context.Context, _a1 string)) *AlertmanagerMock_GetSilence_Call
- func (_c *AlertmanagerMock_GetSilence_Call) RunAndReturn(run func(context.Context, string) (v2models.GettableSilence, error)) *AlertmanagerMock_GetSilence_Call
- type AlertmanagerMock_GetStatus_Call
- func (_c *AlertmanagerMock_GetStatus_Call) Return(_a0 definitions.GettableStatus, _a1 error) *AlertmanagerMock_GetStatus_Call
- func (_c *AlertmanagerMock_GetStatus_Call) Run(run func(_a0 context.Context)) *AlertmanagerMock_GetStatus_Call
- func (_c *AlertmanagerMock_GetStatus_Call) RunAndReturn(run func(context.Context) (definitions.GettableStatus, error)) *AlertmanagerMock_GetStatus_Call
- type AlertmanagerMock_ListSilences_Call
- func (_c *AlertmanagerMock_ListSilences_Call) Return(_a0 v2models.GettableSilences, _a1 error) *AlertmanagerMock_ListSilences_Call
- func (_c *AlertmanagerMock_ListSilences_Call) Run(run func(_a0 context.Context, _a1 []string)) *AlertmanagerMock_ListSilences_Call
- func (_c *AlertmanagerMock_ListSilences_Call) RunAndReturn(run func(context.Context, []string) (v2models.GettableSilences, error)) *AlertmanagerMock_ListSilences_Call
- type AlertmanagerMock_PutAlerts_Call
- func (_c *AlertmanagerMock_PutAlerts_Call) Return(_a0 error) *AlertmanagerMock_PutAlerts_Call
- func (_c *AlertmanagerMock_PutAlerts_Call) Run(run func(_a0 context.Context, _a1 definitions.PostableAlerts)) *AlertmanagerMock_PutAlerts_Call
- func (_c *AlertmanagerMock_PutAlerts_Call) RunAndReturn(run func(context.Context, definitions.PostableAlerts) error) *AlertmanagerMock_PutAlerts_Call
- type AlertmanagerMock_Ready_Call
- type AlertmanagerMock_SaveAndApplyConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) Return(_a0 error) *AlertmanagerMock_SaveAndApplyConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) Run(run func(ctx context.Context, config *definitions.PostableUserConfig)) *AlertmanagerMock_SaveAndApplyConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) RunAndReturn(run func(context.Context, *definitions.PostableUserConfig) error) *AlertmanagerMock_SaveAndApplyConfig_Call
- type AlertmanagerMock_SaveAndApplyDefaultConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Return(_a0 error) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Run(run func(ctx context.Context)) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
- func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) RunAndReturn(run func(context.Context) error) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
- type AlertmanagerMock_SilenceState_Call
- func (_c *AlertmanagerMock_SilenceState_Call) Return(_a0 notify.SilenceState, _a1 error) *AlertmanagerMock_SilenceState_Call
- func (_c *AlertmanagerMock_SilenceState_Call) Run(run func(_a0 context.Context)) *AlertmanagerMock_SilenceState_Call
- func (_c *AlertmanagerMock_SilenceState_Call) RunAndReturn(run func(context.Context) (notify.SilenceState, error)) *AlertmanagerMock_SilenceState_Call
- type AlertmanagerMock_StopAndWait_Call
- type AlertmanagerMock_TestReceivers_Call
- func (_c *AlertmanagerMock_TestReceivers_Call) Return(_a0 *notifier.TestReceiversResult, _a1 error) *AlertmanagerMock_TestReceivers_Call
- func (_c *AlertmanagerMock_TestReceivers_Call) Run(run func(ctx context.Context, c definitions.TestReceiversConfigBodyParams)) *AlertmanagerMock_TestReceivers_Call
- func (_c *AlertmanagerMock_TestReceivers_Call) RunAndReturn(...) *AlertmanagerMock_TestReceivers_Call
- type AlertmanagerMock_TestTemplate_Call
- func (_c *AlertmanagerMock_TestTemplate_Call) Return(_a0 *notify.TestTemplatesResults, _a1 error) *AlertmanagerMock_TestTemplate_Call
- func (_c *AlertmanagerMock_TestTemplate_Call) Run(run func(ctx context.Context, c definitions.TestTemplatesConfigBodyParams)) *AlertmanagerMock_TestTemplate_Call
- func (_c *AlertmanagerMock_TestTemplate_Call) RunAndReturn(...) *AlertmanagerMock_TestTemplate_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertmanagerMock ¶
AlertmanagerMock is an autogenerated mock type for the Alertmanager type
func NewAlertmanagerMock ¶
func NewAlertmanagerMock(t interface { mock.TestingT Cleanup(func()) }) *AlertmanagerMock
NewAlertmanagerMock creates a new instance of AlertmanagerMock. 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 (*AlertmanagerMock) ApplyConfig ¶
func (_m *AlertmanagerMock) ApplyConfig(_a0 context.Context, _a1 *models.AlertConfiguration) error
ApplyConfig provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) CreateSilence ¶
func (_m *AlertmanagerMock) CreateSilence(_a0 context.Context, _a1 *v2models.PostableSilence) (string, error)
CreateSilence provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) DeleteSilence ¶
func (_m *AlertmanagerMock) DeleteSilence(_a0 context.Context, _a1 string) error
DeleteSilence provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) EXPECT ¶
func (_m *AlertmanagerMock) EXPECT() *AlertmanagerMock_Expecter
func (*AlertmanagerMock) GetAlertGroups ¶
func (_m *AlertmanagerMock) GetAlertGroups(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string) (v2models.AlertGroups, error)
GetAlertGroups provides a mock function with given fields: ctx, active, silenced, inhibited, filter, receiver
func (*AlertmanagerMock) GetAlerts ¶
func (_m *AlertmanagerMock) GetAlerts(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string) (v2models.GettableAlerts, error)
GetAlerts provides a mock function with given fields: ctx, active, silenced, inhibited, filter, receiver
func (*AlertmanagerMock) GetReceivers ¶
GetReceivers provides a mock function with given fields: ctx
func (*AlertmanagerMock) GetSilence ¶
func (_m *AlertmanagerMock) GetSilence(_a0 context.Context, _a1 string) (v2models.GettableSilence, error)
GetSilence provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) GetStatus ¶
func (_m *AlertmanagerMock) GetStatus(_a0 context.Context) (definitions.GettableStatus, error)
GetStatus provides a mock function with given fields: _a0
func (*AlertmanagerMock) ListSilences ¶
func (_m *AlertmanagerMock) ListSilences(_a0 context.Context, _a1 []string) (v2models.GettableSilences, error)
ListSilences provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) PutAlerts ¶
func (_m *AlertmanagerMock) PutAlerts(_a0 context.Context, _a1 definitions.PostableAlerts) error
PutAlerts provides a mock function with given fields: _a0, _a1
func (*AlertmanagerMock) Ready ¶
func (_m *AlertmanagerMock) Ready() bool
Ready provides a mock function with given fields:
func (*AlertmanagerMock) SaveAndApplyConfig ¶
func (_m *AlertmanagerMock) SaveAndApplyConfig(ctx context.Context, config *definitions.PostableUserConfig) error
SaveAndApplyConfig provides a mock function with given fields: ctx, config
func (*AlertmanagerMock) SaveAndApplyDefaultConfig ¶
func (_m *AlertmanagerMock) SaveAndApplyDefaultConfig(ctx context.Context) error
SaveAndApplyDefaultConfig provides a mock function with given fields: ctx
func (*AlertmanagerMock) SilenceState ¶
func (_m *AlertmanagerMock) SilenceState(_a0 context.Context) (notify.SilenceState, error)
SilenceState provides a mock function with given fields: _a0
func (*AlertmanagerMock) StopAndWait ¶
func (_m *AlertmanagerMock) StopAndWait()
StopAndWait provides a mock function with given fields:
func (*AlertmanagerMock) TestReceivers ¶
func (_m *AlertmanagerMock) TestReceivers(ctx context.Context, c definitions.TestReceiversConfigBodyParams) (*notifier.TestReceiversResult, error)
TestReceivers provides a mock function with given fields: ctx, c
func (*AlertmanagerMock) TestTemplate ¶
func (_m *AlertmanagerMock) TestTemplate(ctx context.Context, c definitions.TestTemplatesConfigBodyParams) (*notify.TestTemplatesResults, error)
TestTemplate provides a mock function with given fields: ctx, c
type AlertmanagerMock_ApplyConfig_Call ¶
AlertmanagerMock_ApplyConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyConfig'
func (*AlertmanagerMock_ApplyConfig_Call) Return ¶
func (_c *AlertmanagerMock_ApplyConfig_Call) Return(_a0 error) *AlertmanagerMock_ApplyConfig_Call
func (*AlertmanagerMock_ApplyConfig_Call) Run ¶
func (_c *AlertmanagerMock_ApplyConfig_Call) Run(run func(_a0 context.Context, _a1 *models.AlertConfiguration)) *AlertmanagerMock_ApplyConfig_Call
func (*AlertmanagerMock_ApplyConfig_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_ApplyConfig_Call) RunAndReturn(run func(context.Context, *models.AlertConfiguration) error) *AlertmanagerMock_ApplyConfig_Call
type AlertmanagerMock_CreateSilence_Call ¶
AlertmanagerMock_CreateSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSilence'
func (*AlertmanagerMock_CreateSilence_Call) Return ¶
func (_c *AlertmanagerMock_CreateSilence_Call) Return(_a0 string, _a1 error) *AlertmanagerMock_CreateSilence_Call
func (*AlertmanagerMock_CreateSilence_Call) Run ¶
func (_c *AlertmanagerMock_CreateSilence_Call) Run(run func(_a0 context.Context, _a1 *v2models.PostableSilence)) *AlertmanagerMock_CreateSilence_Call
func (*AlertmanagerMock_CreateSilence_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_CreateSilence_Call) RunAndReturn(run func(context.Context, *v2models.PostableSilence) (string, error)) *AlertmanagerMock_CreateSilence_Call
type AlertmanagerMock_DeleteSilence_Call ¶
AlertmanagerMock_DeleteSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSilence'
func (*AlertmanagerMock_DeleteSilence_Call) Return ¶
func (_c *AlertmanagerMock_DeleteSilence_Call) Return(_a0 error) *AlertmanagerMock_DeleteSilence_Call
func (*AlertmanagerMock_DeleteSilence_Call) Run ¶
func (_c *AlertmanagerMock_DeleteSilence_Call) Run(run func(_a0 context.Context, _a1 string)) *AlertmanagerMock_DeleteSilence_Call
func (*AlertmanagerMock_DeleteSilence_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_DeleteSilence_Call) RunAndReturn(run func(context.Context, string) error) *AlertmanagerMock_DeleteSilence_Call
type AlertmanagerMock_Expecter ¶
type AlertmanagerMock_Expecter struct {
// contains filtered or unexported fields
}
func (*AlertmanagerMock_Expecter) ApplyConfig ¶
func (_e *AlertmanagerMock_Expecter) ApplyConfig(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_ApplyConfig_Call
ApplyConfig is a helper method to define mock.On call
- _a0 context.Context
- _a1 *models.AlertConfiguration
func (*AlertmanagerMock_Expecter) CreateSilence ¶
func (_e *AlertmanagerMock_Expecter) CreateSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_CreateSilence_Call
CreateSilence is a helper method to define mock.On call
- _a0 context.Context
- _a1 *v2models.PostableSilence
func (*AlertmanagerMock_Expecter) DeleteSilence ¶
func (_e *AlertmanagerMock_Expecter) DeleteSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_DeleteSilence_Call
DeleteSilence is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*AlertmanagerMock_Expecter) GetAlertGroups ¶
func (_e *AlertmanagerMock_Expecter) GetAlertGroups(ctx interface{}, active interface{}, silenced interface{}, inhibited interface{}, filter interface{}, receiver interface{}) *AlertmanagerMock_GetAlertGroups_Call
GetAlertGroups is a helper method to define mock.On call
- ctx context.Context
- active bool
- silenced bool
- inhibited bool
- filter []string
- receiver string
func (*AlertmanagerMock_Expecter) GetAlerts ¶
func (_e *AlertmanagerMock_Expecter) GetAlerts(ctx interface{}, active interface{}, silenced interface{}, inhibited interface{}, filter interface{}, receiver interface{}) *AlertmanagerMock_GetAlerts_Call
GetAlerts is a helper method to define mock.On call
- ctx context.Context
- active bool
- silenced bool
- inhibited bool
- filter []string
- receiver string
func (*AlertmanagerMock_Expecter) GetReceivers ¶
func (_e *AlertmanagerMock_Expecter) GetReceivers(ctx interface{}) *AlertmanagerMock_GetReceivers_Call
GetReceivers is a helper method to define mock.On call
- ctx context.Context
func (*AlertmanagerMock_Expecter) GetSilence ¶
func (_e *AlertmanagerMock_Expecter) GetSilence(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_GetSilence_Call
GetSilence is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
func (*AlertmanagerMock_Expecter) GetStatus ¶
func (_e *AlertmanagerMock_Expecter) GetStatus(_a0 interface{}) *AlertmanagerMock_GetStatus_Call
GetStatus is a helper method to define mock.On call
- _a0 context.Context
func (*AlertmanagerMock_Expecter) ListSilences ¶
func (_e *AlertmanagerMock_Expecter) ListSilences(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_ListSilences_Call
ListSilences is a helper method to define mock.On call
- _a0 context.Context
- _a1 []string
func (*AlertmanagerMock_Expecter) PutAlerts ¶
func (_e *AlertmanagerMock_Expecter) PutAlerts(_a0 interface{}, _a1 interface{}) *AlertmanagerMock_PutAlerts_Call
PutAlerts is a helper method to define mock.On call
- _a0 context.Context
- _a1 definitions.PostableAlerts
func (*AlertmanagerMock_Expecter) Ready ¶
func (_e *AlertmanagerMock_Expecter) Ready() *AlertmanagerMock_Ready_Call
Ready is a helper method to define mock.On call
func (*AlertmanagerMock_Expecter) SaveAndApplyConfig ¶
func (_e *AlertmanagerMock_Expecter) SaveAndApplyConfig(ctx interface{}, config interface{}) *AlertmanagerMock_SaveAndApplyConfig_Call
SaveAndApplyConfig is a helper method to define mock.On call
- ctx context.Context
- config *definitions.PostableUserConfig
func (*AlertmanagerMock_Expecter) SaveAndApplyDefaultConfig ¶
func (_e *AlertmanagerMock_Expecter) SaveAndApplyDefaultConfig(ctx interface{}) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
SaveAndApplyDefaultConfig is a helper method to define mock.On call
- ctx context.Context
func (*AlertmanagerMock_Expecter) SilenceState ¶
func (_e *AlertmanagerMock_Expecter) SilenceState(_a0 interface{}) *AlertmanagerMock_SilenceState_Call
SilenceState is a helper method to define mock.On call
- _a0 context.Context
func (*AlertmanagerMock_Expecter) StopAndWait ¶
func (_e *AlertmanagerMock_Expecter) StopAndWait() *AlertmanagerMock_StopAndWait_Call
StopAndWait is a helper method to define mock.On call
func (*AlertmanagerMock_Expecter) TestReceivers ¶
func (_e *AlertmanagerMock_Expecter) TestReceivers(ctx interface{}, c interface{}) *AlertmanagerMock_TestReceivers_Call
TestReceivers is a helper method to define mock.On call
- ctx context.Context
- c definitions.TestReceiversConfigBodyParams
func (*AlertmanagerMock_Expecter) TestTemplate ¶
func (_e *AlertmanagerMock_Expecter) TestTemplate(ctx interface{}, c interface{}) *AlertmanagerMock_TestTemplate_Call
TestTemplate is a helper method to define mock.On call
- ctx context.Context
- c definitions.TestTemplatesConfigBodyParams
type AlertmanagerMock_GetAlertGroups_Call ¶
AlertmanagerMock_GetAlertGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlertGroups'
func (*AlertmanagerMock_GetAlertGroups_Call) Return ¶
func (_c *AlertmanagerMock_GetAlertGroups_Call) Return(_a0 v2models.AlertGroups, _a1 error) *AlertmanagerMock_GetAlertGroups_Call
func (*AlertmanagerMock_GetAlertGroups_Call) Run ¶
func (_c *AlertmanagerMock_GetAlertGroups_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string)) *AlertmanagerMock_GetAlertGroups_Call
func (*AlertmanagerMock_GetAlertGroups_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_GetAlertGroups_Call) RunAndReturn(run func(context.Context, bool, bool, bool, []string, string) (v2models.AlertGroups, error)) *AlertmanagerMock_GetAlertGroups_Call
type AlertmanagerMock_GetAlerts_Call ¶
AlertmanagerMock_GetAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlerts'
func (*AlertmanagerMock_GetAlerts_Call) Return ¶
func (_c *AlertmanagerMock_GetAlerts_Call) Return(_a0 v2models.GettableAlerts, _a1 error) *AlertmanagerMock_GetAlerts_Call
func (*AlertmanagerMock_GetAlerts_Call) Run ¶
func (_c *AlertmanagerMock_GetAlerts_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string)) *AlertmanagerMock_GetAlerts_Call
func (*AlertmanagerMock_GetAlerts_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_GetAlerts_Call) RunAndReturn(run func(context.Context, bool, bool, bool, []string, string) (v2models.GettableAlerts, error)) *AlertmanagerMock_GetAlerts_Call
type AlertmanagerMock_GetReceivers_Call ¶
AlertmanagerMock_GetReceivers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReceivers'
func (*AlertmanagerMock_GetReceivers_Call) Return ¶
func (_c *AlertmanagerMock_GetReceivers_Call) Return(_a0 []v2models.Receiver, _a1 error) *AlertmanagerMock_GetReceivers_Call
func (*AlertmanagerMock_GetReceivers_Call) Run ¶
func (_c *AlertmanagerMock_GetReceivers_Call) Run(run func(ctx context.Context)) *AlertmanagerMock_GetReceivers_Call
func (*AlertmanagerMock_GetReceivers_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_GetReceivers_Call) RunAndReturn(run func(context.Context) ([]v2models.Receiver, error)) *AlertmanagerMock_GetReceivers_Call
type AlertmanagerMock_GetSilence_Call ¶
AlertmanagerMock_GetSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSilence'
func (*AlertmanagerMock_GetSilence_Call) Return ¶
func (_c *AlertmanagerMock_GetSilence_Call) Return(_a0 v2models.GettableSilence, _a1 error) *AlertmanagerMock_GetSilence_Call
func (*AlertmanagerMock_GetSilence_Call) Run ¶
func (_c *AlertmanagerMock_GetSilence_Call) Run(run func(_a0 context.Context, _a1 string)) *AlertmanagerMock_GetSilence_Call
func (*AlertmanagerMock_GetSilence_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_GetSilence_Call) RunAndReturn(run func(context.Context, string) (v2models.GettableSilence, error)) *AlertmanagerMock_GetSilence_Call
type AlertmanagerMock_GetStatus_Call ¶
AlertmanagerMock_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'
func (*AlertmanagerMock_GetStatus_Call) Return ¶
func (_c *AlertmanagerMock_GetStatus_Call) Return(_a0 definitions.GettableStatus, _a1 error) *AlertmanagerMock_GetStatus_Call
func (*AlertmanagerMock_GetStatus_Call) Run ¶
func (_c *AlertmanagerMock_GetStatus_Call) Run(run func(_a0 context.Context)) *AlertmanagerMock_GetStatus_Call
func (*AlertmanagerMock_GetStatus_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_GetStatus_Call) RunAndReturn(run func(context.Context) (definitions.GettableStatus, error)) *AlertmanagerMock_GetStatus_Call
type AlertmanagerMock_ListSilences_Call ¶
AlertmanagerMock_ListSilences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSilences'
func (*AlertmanagerMock_ListSilences_Call) Return ¶
func (_c *AlertmanagerMock_ListSilences_Call) Return(_a0 v2models.GettableSilences, _a1 error) *AlertmanagerMock_ListSilences_Call
func (*AlertmanagerMock_ListSilences_Call) Run ¶
func (_c *AlertmanagerMock_ListSilences_Call) Run(run func(_a0 context.Context, _a1 []string)) *AlertmanagerMock_ListSilences_Call
func (*AlertmanagerMock_ListSilences_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_ListSilences_Call) RunAndReturn(run func(context.Context, []string) (v2models.GettableSilences, error)) *AlertmanagerMock_ListSilences_Call
type AlertmanagerMock_PutAlerts_Call ¶
AlertmanagerMock_PutAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutAlerts'
func (*AlertmanagerMock_PutAlerts_Call) Return ¶
func (_c *AlertmanagerMock_PutAlerts_Call) Return(_a0 error) *AlertmanagerMock_PutAlerts_Call
func (*AlertmanagerMock_PutAlerts_Call) Run ¶
func (_c *AlertmanagerMock_PutAlerts_Call) Run(run func(_a0 context.Context, _a1 definitions.PostableAlerts)) *AlertmanagerMock_PutAlerts_Call
func (*AlertmanagerMock_PutAlerts_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_PutAlerts_Call) RunAndReturn(run func(context.Context, definitions.PostableAlerts) error) *AlertmanagerMock_PutAlerts_Call
type AlertmanagerMock_Ready_Call ¶
AlertmanagerMock_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*AlertmanagerMock_Ready_Call) Return ¶
func (_c *AlertmanagerMock_Ready_Call) Return(_a0 bool) *AlertmanagerMock_Ready_Call
func (*AlertmanagerMock_Ready_Call) Run ¶
func (_c *AlertmanagerMock_Ready_Call) Run(run func()) *AlertmanagerMock_Ready_Call
func (*AlertmanagerMock_Ready_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_Ready_Call) RunAndReturn(run func() bool) *AlertmanagerMock_Ready_Call
type AlertmanagerMock_SaveAndApplyConfig_Call ¶
AlertmanagerMock_SaveAndApplyConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAndApplyConfig'
func (*AlertmanagerMock_SaveAndApplyConfig_Call) Return ¶
func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) Return(_a0 error) *AlertmanagerMock_SaveAndApplyConfig_Call
func (*AlertmanagerMock_SaveAndApplyConfig_Call) Run ¶
func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) Run(run func(ctx context.Context, config *definitions.PostableUserConfig)) *AlertmanagerMock_SaveAndApplyConfig_Call
func (*AlertmanagerMock_SaveAndApplyConfig_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_SaveAndApplyConfig_Call) RunAndReturn(run func(context.Context, *definitions.PostableUserConfig) error) *AlertmanagerMock_SaveAndApplyConfig_Call
type AlertmanagerMock_SaveAndApplyDefaultConfig_Call ¶
AlertmanagerMock_SaveAndApplyDefaultConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAndApplyDefaultConfig'
func (*AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Return ¶
func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Return(_a0 error) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
func (*AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Run ¶
func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Run(run func(ctx context.Context)) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
func (*AlertmanagerMock_SaveAndApplyDefaultConfig_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_SaveAndApplyDefaultConfig_Call) RunAndReturn(run func(context.Context) error) *AlertmanagerMock_SaveAndApplyDefaultConfig_Call
type AlertmanagerMock_SilenceState_Call ¶
AlertmanagerMock_SilenceState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SilenceState'
func (*AlertmanagerMock_SilenceState_Call) Return ¶
func (_c *AlertmanagerMock_SilenceState_Call) Return(_a0 notify.SilenceState, _a1 error) *AlertmanagerMock_SilenceState_Call
func (*AlertmanagerMock_SilenceState_Call) Run ¶
func (_c *AlertmanagerMock_SilenceState_Call) Run(run func(_a0 context.Context)) *AlertmanagerMock_SilenceState_Call
func (*AlertmanagerMock_SilenceState_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_SilenceState_Call) RunAndReturn(run func(context.Context) (notify.SilenceState, error)) *AlertmanagerMock_SilenceState_Call
type AlertmanagerMock_StopAndWait_Call ¶
AlertmanagerMock_StopAndWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopAndWait'
func (*AlertmanagerMock_StopAndWait_Call) Return ¶
func (_c *AlertmanagerMock_StopAndWait_Call) Return() *AlertmanagerMock_StopAndWait_Call
func (*AlertmanagerMock_StopAndWait_Call) Run ¶
func (_c *AlertmanagerMock_StopAndWait_Call) Run(run func()) *AlertmanagerMock_StopAndWait_Call
func (*AlertmanagerMock_StopAndWait_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_StopAndWait_Call) RunAndReturn(run func()) *AlertmanagerMock_StopAndWait_Call
type AlertmanagerMock_TestReceivers_Call ¶
AlertmanagerMock_TestReceivers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestReceivers'
func (*AlertmanagerMock_TestReceivers_Call) Return ¶
func (_c *AlertmanagerMock_TestReceivers_Call) Return(_a0 *notifier.TestReceiversResult, _a1 error) *AlertmanagerMock_TestReceivers_Call
func (*AlertmanagerMock_TestReceivers_Call) Run ¶
func (_c *AlertmanagerMock_TestReceivers_Call) Run(run func(ctx context.Context, c definitions.TestReceiversConfigBodyParams)) *AlertmanagerMock_TestReceivers_Call
func (*AlertmanagerMock_TestReceivers_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_TestReceivers_Call) RunAndReturn(run func(context.Context, definitions.TestReceiversConfigBodyParams) (*notifier.TestReceiversResult, error)) *AlertmanagerMock_TestReceivers_Call
type AlertmanagerMock_TestTemplate_Call ¶
AlertmanagerMock_TestTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestTemplate'
func (*AlertmanagerMock_TestTemplate_Call) Return ¶
func (_c *AlertmanagerMock_TestTemplate_Call) Return(_a0 *notify.TestTemplatesResults, _a1 error) *AlertmanagerMock_TestTemplate_Call
func (*AlertmanagerMock_TestTemplate_Call) Run ¶
func (_c *AlertmanagerMock_TestTemplate_Call) Run(run func(ctx context.Context, c definitions.TestTemplatesConfigBodyParams)) *AlertmanagerMock_TestTemplate_Call
func (*AlertmanagerMock_TestTemplate_Call) RunAndReturn ¶
func (_c *AlertmanagerMock_TestTemplate_Call) RunAndReturn(run func(context.Context, definitions.TestTemplatesConfigBodyParams) (*notify.TestTemplatesResults, error)) *AlertmanagerMock_TestTemplate_Call