objectclient

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0 Imports: 10 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) *RuleStore

NewRuleStore returns a new RuleStore

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

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

ListAllRuleGroups returns all the active rule groups

func (*RuleStore) ListRuleGroups

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

ListRuleGroups returns all the active rule groups for a user

func (*RuleStore) SetRuleGroup

func (o *RuleStore) SetRuleGroup(ctx context.Context, userID string, namespace string, group *rules.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