alertmanager_mock

package
v11.1.4-modfix Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertmanagerMock

type AlertmanagerMock struct {
	mock.Mock
}

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 (*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

func (_m *AlertmanagerMock) GetReceivers(ctx context.Context) ([]v2models.Receiver, error)

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

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

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

TestReceivers provides a mock function with given fields: ctx, c

func (*AlertmanagerMock) TestTemplate

TestTemplate provides a mock function with given fields: ctx, c

type AlertmanagerMock_ApplyConfig_Call

type AlertmanagerMock_ApplyConfig_Call struct {
	*mock.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 (*AlertmanagerMock_ApplyConfig_Call) Run

func (*AlertmanagerMock_ApplyConfig_Call) RunAndReturn

type AlertmanagerMock_CreateSilence_Call

type AlertmanagerMock_CreateSilence_Call struct {
	*mock.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 (*AlertmanagerMock_CreateSilence_Call) Run

func (*AlertmanagerMock_CreateSilence_Call) RunAndReturn

type AlertmanagerMock_DeleteSilence_Call

type AlertmanagerMock_DeleteSilence_Call struct {
	*mock.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 (*AlertmanagerMock_DeleteSilence_Call) Run

func (*AlertmanagerMock_DeleteSilence_Call) RunAndReturn

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

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

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

type AlertmanagerMock_GetAlertGroups_Call struct {
	*mock.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 (*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

type AlertmanagerMock_GetAlerts_Call

type AlertmanagerMock_GetAlerts_Call struct {
	*mock.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 (*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

type AlertmanagerMock_GetReceivers_Call

type AlertmanagerMock_GetReceivers_Call struct {
	*mock.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 (*AlertmanagerMock_GetReceivers_Call) Run

func (*AlertmanagerMock_GetReceivers_Call) RunAndReturn

type AlertmanagerMock_GetSilence_Call

type AlertmanagerMock_GetSilence_Call struct {
	*mock.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 (*AlertmanagerMock_GetSilence_Call) Run

func (*AlertmanagerMock_GetSilence_Call) RunAndReturn

type AlertmanagerMock_GetStatus_Call

type AlertmanagerMock_GetStatus_Call struct {
	*mock.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 (*AlertmanagerMock_GetStatus_Call) Run

func (*AlertmanagerMock_GetStatus_Call) RunAndReturn

type AlertmanagerMock_ListSilences_Call

type AlertmanagerMock_ListSilences_Call struct {
	*mock.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 (*AlertmanagerMock_ListSilences_Call) Run

func (*AlertmanagerMock_ListSilences_Call) RunAndReturn

type AlertmanagerMock_PutAlerts_Call

type AlertmanagerMock_PutAlerts_Call struct {
	*mock.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 (*AlertmanagerMock_PutAlerts_Call) Run

func (*AlertmanagerMock_PutAlerts_Call) RunAndReturn

type AlertmanagerMock_Ready_Call

type AlertmanagerMock_Ready_Call struct {
	*mock.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 (*AlertmanagerMock_Ready_Call) Run

func (*AlertmanagerMock_Ready_Call) RunAndReturn

func (_c *AlertmanagerMock_Ready_Call) RunAndReturn(run func() bool) *AlertmanagerMock_Ready_Call

type AlertmanagerMock_SaveAndApplyConfig_Call

type AlertmanagerMock_SaveAndApplyConfig_Call struct {
	*mock.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 (*AlertmanagerMock_SaveAndApplyConfig_Call) Run

func (*AlertmanagerMock_SaveAndApplyConfig_Call) RunAndReturn

type AlertmanagerMock_SaveAndApplyDefaultConfig_Call

type AlertmanagerMock_SaveAndApplyDefaultConfig_Call struct {
	*mock.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 (*AlertmanagerMock_SaveAndApplyDefaultConfig_Call) Run

func (*AlertmanagerMock_SaveAndApplyDefaultConfig_Call) RunAndReturn

type AlertmanagerMock_SilenceState_Call

type AlertmanagerMock_SilenceState_Call struct {
	*mock.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 (*AlertmanagerMock_SilenceState_Call) Run

func (*AlertmanagerMock_SilenceState_Call) RunAndReturn

type AlertmanagerMock_StopAndWait_Call

type AlertmanagerMock_StopAndWait_Call struct {
	*mock.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 (*AlertmanagerMock_StopAndWait_Call) Run

func (*AlertmanagerMock_StopAndWait_Call) RunAndReturn

type AlertmanagerMock_TestReceivers_Call

type AlertmanagerMock_TestReceivers_Call struct {
	*mock.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 (*AlertmanagerMock_TestReceivers_Call) Run

type AlertmanagerMock_TestTemplate_Call

type AlertmanagerMock_TestTemplate_Call struct {
	*mock.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 (*AlertmanagerMock_TestTemplate_Call) Run

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL