objectclient

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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, logger log.Logger) *RuleStore

NewRuleStore returns a new RuleStore

func (*RuleStore) DeleteNamespace

func (o *RuleStore) DeleteNamespace(ctx context.Context, userID, namespace string) error

DeleteNamespace deletes all the rule groups in the specified namespace

func (*RuleStore) DeleteRuleGroup

func (o *RuleStore) DeleteRuleGroup(ctx context.Context, userID, namespace, groupName string) error

DeleteRuleGroup deletes the specified rule group

func (*RuleStore) GetRuleGroup

func (o *RuleStore) GetRuleGroup(ctx context.Context, userID, namespace, grp string) (*rulespb.RuleGroupDesc, error)

GetRuleGroup returns the requested rule group

func (*RuleStore) ListAllRuleGroups

func (o *RuleStore) ListAllRuleGroups(ctx context.Context) (map[string]rulespb.RuleGroupList, error)

ListAllRuleGroups implements rules.RuleStore.

func (*RuleStore) ListAllUsers

func (o *RuleStore) ListAllUsers(ctx context.Context) ([]string, error)

func (*RuleStore) ListRuleGroupsForUserAndNamespace

func (o *RuleStore) ListRuleGroupsForUserAndNamespace(ctx context.Context, userID, namespace string) (rulespb.RuleGroupList, error)

func (*RuleStore) LoadRuleGroups

func (o *RuleStore) LoadRuleGroups(ctx context.Context, groupsToLoad map[string]rulespb.RuleGroupList) error

func (*RuleStore) SetRuleGroup

func (o *RuleStore) SetRuleGroup(ctx context.Context, userID, namespace string, group *rulespb.RuleGroupDesc) error

SetRuleGroup sets provided rule group

Jump to

Keyboard shortcuts

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