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 RemoteAlertmanagerMock

type RemoteAlertmanagerMock struct {
	mock.Mock
}

RemoteAlertmanagerMock is an autogenerated mock type for the remoteAlertmanager type

func NewRemoteAlertmanagerMock

func NewRemoteAlertmanagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RemoteAlertmanagerMock

NewRemoteAlertmanagerMock creates a new instance of RemoteAlertmanagerMock. 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 (*RemoteAlertmanagerMock) ApplyConfig

ApplyConfig provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) CompareAndSendConfiguration

func (_m *RemoteAlertmanagerMock) CompareAndSendConfiguration(_a0 context.Context, _a1 *models.AlertConfiguration) error

CompareAndSendConfiguration provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) CompareAndSendState

func (_m *RemoteAlertmanagerMock) CompareAndSendState(_a0 context.Context) error

CompareAndSendState provides a mock function with given fields: _a0

func (*RemoteAlertmanagerMock) CreateSilence

func (_m *RemoteAlertmanagerMock) CreateSilence(_a0 context.Context, _a1 *v2models.PostableSilence) (string, error)

CreateSilence provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) DeleteSilence

func (_m *RemoteAlertmanagerMock) DeleteSilence(_a0 context.Context, _a1 string) error

DeleteSilence provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) EXPECT

func (*RemoteAlertmanagerMock) GetAlertGroups

func (_m *RemoteAlertmanagerMock) 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 (*RemoteAlertmanagerMock) GetAlerts

func (_m *RemoteAlertmanagerMock) 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 (*RemoteAlertmanagerMock) GetReceivers

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

GetReceivers provides a mock function with given fields: ctx

func (*RemoteAlertmanagerMock) GetSilence

GetSilence provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) GetStatus

GetStatus provides a mock function with given fields: _a0

func (*RemoteAlertmanagerMock) ListSilences

ListSilences provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) PutAlerts

PutAlerts provides a mock function with given fields: _a0, _a1

func (*RemoteAlertmanagerMock) Ready

func (_m *RemoteAlertmanagerMock) Ready() bool

Ready provides a mock function with given fields:

func (*RemoteAlertmanagerMock) SaveAndApplyConfig

func (_m *RemoteAlertmanagerMock) SaveAndApplyConfig(ctx context.Context, config *definitions.PostableUserConfig) error

SaveAndApplyConfig provides a mock function with given fields: ctx, config

func (*RemoteAlertmanagerMock) SaveAndApplyDefaultConfig

func (_m *RemoteAlertmanagerMock) SaveAndApplyDefaultConfig(ctx context.Context) error

SaveAndApplyDefaultConfig provides a mock function with given fields: ctx

func (*RemoteAlertmanagerMock) SilenceState

SilenceState provides a mock function with given fields: _a0

func (*RemoteAlertmanagerMock) StopAndWait

func (_m *RemoteAlertmanagerMock) StopAndWait()

StopAndWait provides a mock function with given fields:

func (*RemoteAlertmanagerMock) TestReceivers

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

func (*RemoteAlertmanagerMock) TestTemplate

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

type RemoteAlertmanagerMock_ApplyConfig_Call

type RemoteAlertmanagerMock_ApplyConfig_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_ApplyConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyConfig'

func (*RemoteAlertmanagerMock_ApplyConfig_Call) Return

func (*RemoteAlertmanagerMock_ApplyConfig_Call) Run

func (*RemoteAlertmanagerMock_ApplyConfig_Call) RunAndReturn

type RemoteAlertmanagerMock_CompareAndSendConfiguration_Call

type RemoteAlertmanagerMock_CompareAndSendConfiguration_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_CompareAndSendConfiguration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareAndSendConfiguration'

func (*RemoteAlertmanagerMock_CompareAndSendConfiguration_Call) Return

func (*RemoteAlertmanagerMock_CompareAndSendConfiguration_Call) Run

func (*RemoteAlertmanagerMock_CompareAndSendConfiguration_Call) RunAndReturn

type RemoteAlertmanagerMock_CompareAndSendState_Call

type RemoteAlertmanagerMock_CompareAndSendState_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_CompareAndSendState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompareAndSendState'

func (*RemoteAlertmanagerMock_CompareAndSendState_Call) Return

func (*RemoteAlertmanagerMock_CompareAndSendState_Call) Run

func (*RemoteAlertmanagerMock_CompareAndSendState_Call) RunAndReturn

type RemoteAlertmanagerMock_CreateSilence_Call

type RemoteAlertmanagerMock_CreateSilence_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_CreateSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSilence'

func (*RemoteAlertmanagerMock_CreateSilence_Call) Return

func (*RemoteAlertmanagerMock_CreateSilence_Call) Run

func (*RemoteAlertmanagerMock_CreateSilence_Call) RunAndReturn

type RemoteAlertmanagerMock_DeleteSilence_Call

type RemoteAlertmanagerMock_DeleteSilence_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_DeleteSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSilence'

func (*RemoteAlertmanagerMock_DeleteSilence_Call) Return

func (*RemoteAlertmanagerMock_DeleteSilence_Call) Run

func (*RemoteAlertmanagerMock_DeleteSilence_Call) RunAndReturn

type RemoteAlertmanagerMock_Expecter

type RemoteAlertmanagerMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*RemoteAlertmanagerMock_Expecter) ApplyConfig

func (_e *RemoteAlertmanagerMock_Expecter) ApplyConfig(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_ApplyConfig_Call

ApplyConfig is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *models.AlertConfiguration

func (*RemoteAlertmanagerMock_Expecter) CompareAndSendConfiguration

func (_e *RemoteAlertmanagerMock_Expecter) CompareAndSendConfiguration(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_CompareAndSendConfiguration_Call

CompareAndSendConfiguration is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *models.AlertConfiguration

func (*RemoteAlertmanagerMock_Expecter) CompareAndSendState

func (_e *RemoteAlertmanagerMock_Expecter) CompareAndSendState(_a0 interface{}) *RemoteAlertmanagerMock_CompareAndSendState_Call

CompareAndSendState is a helper method to define mock.On call

  • _a0 context.Context

func (*RemoteAlertmanagerMock_Expecter) CreateSilence

func (_e *RemoteAlertmanagerMock_Expecter) CreateSilence(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_CreateSilence_Call

CreateSilence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *v2models.PostableSilence

func (*RemoteAlertmanagerMock_Expecter) DeleteSilence

func (_e *RemoteAlertmanagerMock_Expecter) DeleteSilence(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_DeleteSilence_Call

DeleteSilence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*RemoteAlertmanagerMock_Expecter) GetAlertGroups

func (_e *RemoteAlertmanagerMock_Expecter) GetAlertGroups(ctx interface{}, active interface{}, silenced interface{}, inhibited interface{}, filter interface{}, receiver interface{}) *RemoteAlertmanagerMock_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 (*RemoteAlertmanagerMock_Expecter) GetAlerts

func (_e *RemoteAlertmanagerMock_Expecter) GetAlerts(ctx interface{}, active interface{}, silenced interface{}, inhibited interface{}, filter interface{}, receiver interface{}) *RemoteAlertmanagerMock_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 (*RemoteAlertmanagerMock_Expecter) GetReceivers

GetReceivers is a helper method to define mock.On call

  • ctx context.Context

func (*RemoteAlertmanagerMock_Expecter) GetSilence

func (_e *RemoteAlertmanagerMock_Expecter) GetSilence(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_GetSilence_Call

GetSilence is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*RemoteAlertmanagerMock_Expecter) GetStatus

GetStatus is a helper method to define mock.On call

  • _a0 context.Context

func (*RemoteAlertmanagerMock_Expecter) ListSilences

func (_e *RemoteAlertmanagerMock_Expecter) ListSilences(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_ListSilences_Call

ListSilences is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 []string

func (*RemoteAlertmanagerMock_Expecter) PutAlerts

func (_e *RemoteAlertmanagerMock_Expecter) PutAlerts(_a0 interface{}, _a1 interface{}) *RemoteAlertmanagerMock_PutAlerts_Call

PutAlerts is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 definitions.PostableAlerts

func (*RemoteAlertmanagerMock_Expecter) Ready

Ready is a helper method to define mock.On call

func (*RemoteAlertmanagerMock_Expecter) SaveAndApplyConfig

func (_e *RemoteAlertmanagerMock_Expecter) SaveAndApplyConfig(ctx interface{}, config interface{}) *RemoteAlertmanagerMock_SaveAndApplyConfig_Call

SaveAndApplyConfig is a helper method to define mock.On call

  • ctx context.Context
  • config *definitions.PostableUserConfig

func (*RemoteAlertmanagerMock_Expecter) SaveAndApplyDefaultConfig

func (_e *RemoteAlertmanagerMock_Expecter) SaveAndApplyDefaultConfig(ctx interface{}) *RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call

SaveAndApplyDefaultConfig is a helper method to define mock.On call

  • ctx context.Context

func (*RemoteAlertmanagerMock_Expecter) SilenceState

SilenceState is a helper method to define mock.On call

  • _a0 context.Context

func (*RemoteAlertmanagerMock_Expecter) StopAndWait

StopAndWait is a helper method to define mock.On call

func (*RemoteAlertmanagerMock_Expecter) TestReceivers

func (_e *RemoteAlertmanagerMock_Expecter) TestReceivers(ctx interface{}, c interface{}) *RemoteAlertmanagerMock_TestReceivers_Call

TestReceivers is a helper method to define mock.On call

  • ctx context.Context
  • c definitions.TestReceiversConfigBodyParams

func (*RemoteAlertmanagerMock_Expecter) TestTemplate

func (_e *RemoteAlertmanagerMock_Expecter) TestTemplate(ctx interface{}, c interface{}) *RemoteAlertmanagerMock_TestTemplate_Call

TestTemplate is a helper method to define mock.On call

  • ctx context.Context
  • c definitions.TestTemplatesConfigBodyParams

type RemoteAlertmanagerMock_GetAlertGroups_Call

type RemoteAlertmanagerMock_GetAlertGroups_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_GetAlertGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlertGroups'

func (*RemoteAlertmanagerMock_GetAlertGroups_Call) Return

func (*RemoteAlertmanagerMock_GetAlertGroups_Call) Run

func (_c *RemoteAlertmanagerMock_GetAlertGroups_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string)) *RemoteAlertmanagerMock_GetAlertGroups_Call

func (*RemoteAlertmanagerMock_GetAlertGroups_Call) RunAndReturn

type RemoteAlertmanagerMock_GetAlerts_Call

type RemoteAlertmanagerMock_GetAlerts_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_GetAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAlerts'

func (*RemoteAlertmanagerMock_GetAlerts_Call) Return

func (*RemoteAlertmanagerMock_GetAlerts_Call) Run

func (_c *RemoteAlertmanagerMock_GetAlerts_Call) Run(run func(ctx context.Context, active bool, silenced bool, inhibited bool, filter []string, receiver string)) *RemoteAlertmanagerMock_GetAlerts_Call

func (*RemoteAlertmanagerMock_GetAlerts_Call) RunAndReturn

type RemoteAlertmanagerMock_GetReceivers_Call

type RemoteAlertmanagerMock_GetReceivers_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_GetReceivers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReceivers'

func (*RemoteAlertmanagerMock_GetReceivers_Call) Return

func (*RemoteAlertmanagerMock_GetReceivers_Call) Run

func (*RemoteAlertmanagerMock_GetReceivers_Call) RunAndReturn

type RemoteAlertmanagerMock_GetSilence_Call

type RemoteAlertmanagerMock_GetSilence_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_GetSilence_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSilence'

func (*RemoteAlertmanagerMock_GetSilence_Call) Return

func (*RemoteAlertmanagerMock_GetSilence_Call) Run

func (*RemoteAlertmanagerMock_GetSilence_Call) RunAndReturn

type RemoteAlertmanagerMock_GetStatus_Call

type RemoteAlertmanagerMock_GetStatus_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_GetStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatus'

func (*RemoteAlertmanagerMock_GetStatus_Call) Return

func (*RemoteAlertmanagerMock_GetStatus_Call) Run

func (*RemoteAlertmanagerMock_GetStatus_Call) RunAndReturn

type RemoteAlertmanagerMock_ListSilences_Call

type RemoteAlertmanagerMock_ListSilences_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_ListSilences_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSilences'

func (*RemoteAlertmanagerMock_ListSilences_Call) Return

func (*RemoteAlertmanagerMock_ListSilences_Call) Run

func (*RemoteAlertmanagerMock_ListSilences_Call) RunAndReturn

type RemoteAlertmanagerMock_PutAlerts_Call

type RemoteAlertmanagerMock_PutAlerts_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_PutAlerts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutAlerts'

func (*RemoteAlertmanagerMock_PutAlerts_Call) Return

func (*RemoteAlertmanagerMock_PutAlerts_Call) Run

func (*RemoteAlertmanagerMock_PutAlerts_Call) RunAndReturn

type RemoteAlertmanagerMock_Ready_Call

type RemoteAlertmanagerMock_Ready_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'

func (*RemoteAlertmanagerMock_Ready_Call) Return

func (*RemoteAlertmanagerMock_Ready_Call) Run

func (*RemoteAlertmanagerMock_Ready_Call) RunAndReturn

type RemoteAlertmanagerMock_SaveAndApplyConfig_Call

type RemoteAlertmanagerMock_SaveAndApplyConfig_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_SaveAndApplyConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAndApplyConfig'

func (*RemoteAlertmanagerMock_SaveAndApplyConfig_Call) Return

func (*RemoteAlertmanagerMock_SaveAndApplyConfig_Call) Run

func (*RemoteAlertmanagerMock_SaveAndApplyConfig_Call) RunAndReturn

type RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call

type RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveAndApplyDefaultConfig'

func (*RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call) Return

func (*RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call) Run

func (*RemoteAlertmanagerMock_SaveAndApplyDefaultConfig_Call) RunAndReturn

type RemoteAlertmanagerMock_SilenceState_Call

type RemoteAlertmanagerMock_SilenceState_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_SilenceState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SilenceState'

func (*RemoteAlertmanagerMock_SilenceState_Call) Return

func (*RemoteAlertmanagerMock_SilenceState_Call) Run

func (*RemoteAlertmanagerMock_SilenceState_Call) RunAndReturn

type RemoteAlertmanagerMock_StopAndWait_Call

type RemoteAlertmanagerMock_StopAndWait_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_StopAndWait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopAndWait'

func (*RemoteAlertmanagerMock_StopAndWait_Call) Return

func (*RemoteAlertmanagerMock_StopAndWait_Call) Run

func (*RemoteAlertmanagerMock_StopAndWait_Call) RunAndReturn

type RemoteAlertmanagerMock_TestReceivers_Call

type RemoteAlertmanagerMock_TestReceivers_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_TestReceivers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestReceivers'

func (*RemoteAlertmanagerMock_TestReceivers_Call) Return

type RemoteAlertmanagerMock_TestTemplate_Call

type RemoteAlertmanagerMock_TestTemplate_Call struct {
	*mock.Call
}

RemoteAlertmanagerMock_TestTemplate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TestTemplate'

func (*RemoteAlertmanagerMock_TestTemplate_Call) Return

Jump to

Keyboard shortcuts

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