Documentation ¶
Index ¶
- type Client
- type ClientProvider
- type FakeCortex
- func (c *FakeCortex) DeleteAlertmanagerConfiguration(ctx context.Context, tenant string) error
- func (c *FakeCortex) DeleteRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, ...) error
- func (c *FakeCortex) GetAlertmanagerConfiguration(ctx context.Context, tenant string) ([]byte, error)
- func (c *FakeCortex) GetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, ...) ([]byte, error)
- func (c *FakeCortex) SetAlertmanagerConfiguration(ctx context.Context, tenant string, config []byte) error
- func (c *FakeCortex) SetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetAlertmanagerConfiguration(ctx context.Context, tenant string) ([]byte, error) SetAlertmanagerConfiguration(ctx context.Context, tenant string, config []byte) error DeleteAlertmanagerConfiguration(ctx context.Context, tenant string) error GetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string) ([]byte, error) SetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string, config []byte) error DeleteRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string) error }
type ClientProvider ¶
type ClientProvider func() Client
type FakeCortex ¶
type FakeCortex struct {
// contains filtered or unexported fields
}
func NewFakeClient ¶
func NewFakeClient() *FakeCortex
func (*FakeCortex) DeleteAlertmanagerConfiguration ¶
func (c *FakeCortex) DeleteAlertmanagerConfiguration(ctx context.Context, tenant string) error
func (*FakeCortex) DeleteRuleGroupConfiguration ¶
func (c *FakeCortex) DeleteRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string) error
func (*FakeCortex) GetAlertmanagerConfiguration ¶
func (*FakeCortex) GetRuleGroupConfiguration ¶
func (c *FakeCortex) GetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string) ([]byte, error)
func (*FakeCortex) SetAlertmanagerConfiguration ¶
func (*FakeCortex) SetRuleGroupConfiguration ¶
func (c *FakeCortex) SetRuleGroupConfiguration(ctx context.Context, tenant string, ruleGroupType kubermaticv1.RuleGroupType, groupName string, config []byte) error
Click to show internal directories.
Click to hide internal directories.