Documentation ¶
Index ¶
- type CortexCaller
- func (_m *CortexCaller) CreateAlertmanagerConfig(ctx context.Context, cfg string, templates map[string]string) error
- func (_m *CortexCaller) CreateRuleGroup(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup) error
- func (_m *CortexCaller) DeleteRuleGroup(ctx context.Context, namespace string, groupName string) error
- func (_m *CortexCaller) EXPECT() *CortexCaller_Expecter
- func (_m *CortexCaller) GetRuleGroup(ctx context.Context, namespace string, groupName string) (*rwrulefmt.RuleGroup, error)
- func (_m *CortexCaller) ListRules(ctx context.Context, namespace string) (map[string][]rwrulefmt.RuleGroup, error)
- type CortexCaller_CreateAlertmanagerConfig_Call
- func (_c *CortexCaller_CreateAlertmanagerConfig_Call) Return(_a0 error) *CortexCaller_CreateAlertmanagerConfig_Call
- func (_c *CortexCaller_CreateAlertmanagerConfig_Call) Run(run func(ctx context.Context, cfg string, templates map[string]string)) *CortexCaller_CreateAlertmanagerConfig_Call
- func (_c *CortexCaller_CreateAlertmanagerConfig_Call) RunAndReturn(run func(context.Context, string, map[string]string) error) *CortexCaller_CreateAlertmanagerConfig_Call
- type CortexCaller_CreateRuleGroup_Call
- func (_c *CortexCaller_CreateRuleGroup_Call) Return(_a0 error) *CortexCaller_CreateRuleGroup_Call
- func (_c *CortexCaller_CreateRuleGroup_Call) Run(run func(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup)) *CortexCaller_CreateRuleGroup_Call
- func (_c *CortexCaller_CreateRuleGroup_Call) RunAndReturn(run func(context.Context, string, rwrulefmt.RuleGroup) error) *CortexCaller_CreateRuleGroup_Call
- type CortexCaller_DeleteRuleGroup_Call
- func (_c *CortexCaller_DeleteRuleGroup_Call) Return(_a0 error) *CortexCaller_DeleteRuleGroup_Call
- func (_c *CortexCaller_DeleteRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexCaller_DeleteRuleGroup_Call
- func (_c *CortexCaller_DeleteRuleGroup_Call) RunAndReturn(run func(context.Context, string, string) error) *CortexCaller_DeleteRuleGroup_Call
- type CortexCaller_Expecter
- func (_e *CortexCaller_Expecter) CreateAlertmanagerConfig(ctx interface{}, cfg interface{}, templates interface{}) *CortexCaller_CreateAlertmanagerConfig_Call
- func (_e *CortexCaller_Expecter) CreateRuleGroup(ctx interface{}, namespace interface{}, rg interface{}) *CortexCaller_CreateRuleGroup_Call
- func (_e *CortexCaller_Expecter) DeleteRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexCaller_DeleteRuleGroup_Call
- func (_e *CortexCaller_Expecter) GetRuleGroup(ctx interface{}, namespace interface{}, groupName interface{}) *CortexCaller_GetRuleGroup_Call
- func (_e *CortexCaller_Expecter) ListRules(ctx interface{}, namespace interface{}) *CortexCaller_ListRules_Call
- type CortexCaller_GetRuleGroup_Call
- func (_c *CortexCaller_GetRuleGroup_Call) Return(_a0 *rwrulefmt.RuleGroup, _a1 error) *CortexCaller_GetRuleGroup_Call
- func (_c *CortexCaller_GetRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexCaller_GetRuleGroup_Call
- func (_c *CortexCaller_GetRuleGroup_Call) RunAndReturn(run func(context.Context, string, string) (*rwrulefmt.RuleGroup, error)) *CortexCaller_GetRuleGroup_Call
- type CortexCaller_ListRules_Call
- func (_c *CortexCaller_ListRules_Call) Return(_a0 map[string][]rwrulefmt.RuleGroup, _a1 error) *CortexCaller_ListRules_Call
- func (_c *CortexCaller_ListRules_Call) Run(run func(ctx context.Context, namespace string)) *CortexCaller_ListRules_Call
- func (_c *CortexCaller_ListRules_Call) RunAndReturn(run func(context.Context, string) (map[string][]rwrulefmt.RuleGroup, error)) *CortexCaller_ListRules_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CortexCaller ¶
CortexCaller is an autogenerated mock type for the CortexCaller type
func NewCortexCaller ¶
func NewCortexCaller(t mockConstructorTestingTNewCortexCaller) *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.
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
type CortexCaller_CreateAlertmanagerConfig_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 (_c *CortexCaller_CreateAlertmanagerConfig_Call) Return(_a0 error) *CortexCaller_CreateAlertmanagerConfig_Call
func (*CortexCaller_CreateAlertmanagerConfig_Call) Run ¶
func (_c *CortexCaller_CreateAlertmanagerConfig_Call) Run(run func(ctx context.Context, cfg string, templates map[string]string)) *CortexCaller_CreateAlertmanagerConfig_Call
func (*CortexCaller_CreateAlertmanagerConfig_Call) RunAndReturn ¶ added in v0.6.1
func (_c *CortexCaller_CreateAlertmanagerConfig_Call) RunAndReturn(run func(context.Context, string, map[string]string) error) *CortexCaller_CreateAlertmanagerConfig_Call
type CortexCaller_CreateRuleGroup_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 (_c *CortexCaller_CreateRuleGroup_Call) Return(_a0 error) *CortexCaller_CreateRuleGroup_Call
func (*CortexCaller_CreateRuleGroup_Call) Run ¶
func (_c *CortexCaller_CreateRuleGroup_Call) Run(run func(ctx context.Context, namespace string, rg rwrulefmt.RuleGroup)) *CortexCaller_CreateRuleGroup_Call
func (*CortexCaller_CreateRuleGroup_Call) RunAndReturn ¶ added in v0.6.1
func (_c *CortexCaller_CreateRuleGroup_Call) RunAndReturn(run func(context.Context, string, rwrulefmt.RuleGroup) error) *CortexCaller_CreateRuleGroup_Call
type CortexCaller_DeleteRuleGroup_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 (_c *CortexCaller_DeleteRuleGroup_Call) Return(_a0 error) *CortexCaller_DeleteRuleGroup_Call
func (*CortexCaller_DeleteRuleGroup_Call) Run ¶
func (_c *CortexCaller_DeleteRuleGroup_Call) Run(run func(ctx context.Context, namespace string, groupName string)) *CortexCaller_DeleteRuleGroup_Call
func (*CortexCaller_DeleteRuleGroup_Call) RunAndReturn ¶ added in v0.6.1
func (_c *CortexCaller_DeleteRuleGroup_Call) RunAndReturn(run func(context.Context, string, string) error) *CortexCaller_DeleteRuleGroup_Call
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 ¶
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 (_c *CortexCaller_GetRuleGroup_Call) Return(_a0 *rwrulefmt.RuleGroup, _a1 error) *CortexCaller_GetRuleGroup_Call
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 ¶ added in v0.6.1
func (_c *CortexCaller_GetRuleGroup_Call) RunAndReturn(run func(context.Context, string, string) (*rwrulefmt.RuleGroup, error)) *CortexCaller_GetRuleGroup_Call
type CortexCaller_ListRules_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 (_c *CortexCaller_ListRules_Call) Return(_a0 map[string][]rwrulefmt.RuleGroup, _a1 error) *CortexCaller_ListRules_Call
func (*CortexCaller_ListRules_Call) Run ¶
func (_c *CortexCaller_ListRules_Call) Run(run func(ctx context.Context, namespace string)) *CortexCaller_ListRules_Call
func (*CortexCaller_ListRules_Call) RunAndReturn ¶ added in v0.6.1
func (_c *CortexCaller_ListRules_Call) RunAndReturn(run func(context.Context, string) (map[string][]rwrulefmt.RuleGroup, error)) *CortexCaller_ListRules_Call