Documentation ¶
Index ¶
- type RuleStore
- func (o *RuleStore) DeleteNamespace(ctx context.Context, userID, namespace string) error
- func (o *RuleStore) DeleteRuleGroup(ctx context.Context, userID string, namespace string, groupName string) error
- func (o *RuleStore) GetRuleGroup(ctx context.Context, userID string, namespace string, grp string) (*rules.RuleGroupDesc, error)
- func (o *RuleStore) ListAllRuleGroups(ctx context.Context) (map[string]rules.RuleGroupList, error)
- func (o *RuleStore) ListAllUsers(ctx context.Context) ([]string, error)
- func (o *RuleStore) ListRuleGroupsForUserAndNamespace(ctx context.Context, userID, namespace string) (rules.RuleGroupList, error)
- func (o *RuleStore) LoadRuleGroups(ctx context.Context, groupsToLoad map[string]rules.RuleGroupList) error
- func (o *RuleStore) SetRuleGroup(ctx context.Context, userID string, namespace string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleStore ¶
type RuleStore struct {
// contains filtered or unexported fields
}
RuleStore allows cortex rules to be stored using an object store backend.
func NewRuleStore ¶
func NewRuleStore(client chunk.ObjectClient, loadConcurrency int) *RuleStore
NewRuleStore returns a new RuleStore
func (*RuleStore) DeleteNamespace ¶ added in v1.4.0
DeleteNamespace deletes all the rule groups in the specified namespace
func (*RuleStore) DeleteRuleGroup ¶
func (o *RuleStore) DeleteRuleGroup(ctx context.Context, userID string, namespace string, groupName string) error
DeleteRuleGroup deletes the specified rule group
func (*RuleStore) GetRuleGroup ¶
func (o *RuleStore) GetRuleGroup(ctx context.Context, userID string, namespace string, grp string) (*rules.RuleGroupDesc, error)
GetRuleGroup returns the requested rule group
func (*RuleStore) ListAllRuleGroups ¶
ListAllRuleGroups implements rules.RuleStore.
func (*RuleStore) ListAllUsers ¶ added in v1.5.0
func (*RuleStore) ListRuleGroupsForUserAndNamespace ¶ added in v1.5.0
func (*RuleStore) LoadRuleGroups ¶ added in v1.5.0
func (*RuleStore) SetRuleGroup ¶
func (o *RuleStore) SetRuleGroup(ctx context.Context, userID string, namespace string, group *rules.RuleGroupDesc) error
SetRuleGroup sets provided rule group
Click to show internal directories.
Click to hide internal directories.