mocks

package
v0.0.0-...-b632eb7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CortexCaller

type CortexCaller struct {
	mock.Mock
}

CortexCaller is an autogenerated mock type for the CortexCaller type

func NewCortexCaller

func NewCortexCaller(t interface {
	mock.TestingT
	Cleanup(func())
}) *CortexCaller

NewCortexCaller creates a new instance of CortexCaller. 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 (*CortexCaller) CreateAlertmanagerConfig

func (_m *CortexCaller) CreateAlertmanagerConfig(ctx context.Context, cfg string, templates map[string]string) error

CreateAlertmanagerConfig provides a mock function with given fields: ctx, cfg, templates

func (*CortexCaller) CreateRuleGroup

func (_m *CortexCaller) CreateRuleGroup(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup) error

CreateRuleGroup provides a mock function with given fields: ctx, namespace, rg

func (*CortexCaller) DeleteRuleGroup

func (_m *CortexCaller) DeleteRuleGroup(ctx context.Context, namespace string, groupName string) error

DeleteRuleGroup provides a mock function with given fields: ctx, namespace, groupName

func (*CortexCaller) EXPECT

func (_m *CortexCaller) EXPECT() *CortexCaller_Expecter

func (*CortexCaller) GetRuleGroup

func (_m *CortexCaller) GetRuleGroup(ctx context.Context, namespace string, groupName string) (*rwrulefmt.RuleGroup, error)

GetRuleGroup provides a mock function with given fields: ctx, namespace, groupName

func (*CortexCaller) ListRules

func (_m *CortexCaller) ListRules(ctx context.Context, namespace string) (map[string][]rwrulefmt.RuleGroup, error)

ListRules provides a mock function with given fields: ctx, namespace

type CortexCaller_CreateAlertmanagerConfig_Call

type CortexCaller_CreateAlertmanagerConfig_Call struct {
	*mock.Call
}

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

func (*CortexCaller_CreateAlertmanagerConfig_Call) Return

func (*CortexCaller_CreateAlertmanagerConfig_Call) Run

func (*CortexCaller_CreateAlertmanagerConfig_Call) RunAndReturn

type CortexCaller_CreateRuleGroup_Call

type CortexCaller_CreateRuleGroup_Call struct {
	*mock.Call
}

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

func (*CortexCaller_CreateRuleGroup_Call) Return

func (*CortexCaller_CreateRuleGroup_Call) Run

func (*CortexCaller_CreateRuleGroup_Call) RunAndReturn

type CortexCaller_DeleteRuleGroup_Call

type CortexCaller_DeleteRuleGroup_Call struct {
	*mock.Call
}

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

func (*CortexCaller_DeleteRuleGroup_Call) Return

func (*CortexCaller_DeleteRuleGroup_Call) Run

func (*CortexCaller_DeleteRuleGroup_Call) RunAndReturn

type CortexCaller_Expecter

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

func (*CortexCaller_Expecter) CreateAlertmanagerConfig

func (_e *CortexCaller_Expecter) CreateAlertmanagerConfig(ctx interface{}, cfg interface{}, templates interface{}) *CortexCaller_CreateAlertmanagerConfig_Call

CreateAlertmanagerConfig is a helper method to define mock.On call

  • ctx context.Context
  • cfg string
  • templates map[string]string

func (*CortexCaller_Expecter) CreateRuleGroup

func (_e *CortexCaller_Expecter) CreateRuleGroup(ctx interface{}, namespace interface{}, rg interface{}) *CortexCaller_CreateRuleGroup_Call

CreateRuleGroup is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • rg rwrulefmt.RuleGroup

func (*CortexCaller_Expecter) DeleteRuleGroup

func (_e *CortexCaller_Expecter) DeleteRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexCaller_DeleteRuleGroup_Call

DeleteRuleGroup is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • groupName string

func (*CortexCaller_Expecter) GetRuleGroup

func (_e *CortexCaller_Expecter) GetRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexCaller_GetRuleGroup_Call

GetRuleGroup is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • groupName string

func (*CortexCaller_Expecter) ListRules

func (_e *CortexCaller_Expecter) ListRules(ctx interface{}, namespace interface{}) *CortexCaller_ListRules_Call

ListRules is a helper method to define mock.On call

  • ctx context.Context
  • namespace string

type CortexCaller_GetRuleGroup_Call

type CortexCaller_GetRuleGroup_Call struct {
	*mock.Call
}

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

func (*CortexCaller_GetRuleGroup_Call) Return

func (*CortexCaller_GetRuleGroup_Call) Run

func (_c *CortexCaller_GetRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexCaller_GetRuleGroup_Call

func (*CortexCaller_GetRuleGroup_Call) RunAndReturn

type CortexCaller_ListRules_Call

type CortexCaller_ListRules_Call struct {
	*mock.Call
}

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

func (*CortexCaller_ListRules_Call) Return

func (*CortexCaller_ListRules_Call) Run

func (*CortexCaller_ListRules_Call) RunAndReturn

Jump to

Keyboard shortcuts

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