bucketclient

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketRuleStore

type BucketRuleStore struct {
	// contains filtered or unexported fields
}

BucketRuleStore is used to support the RuleStore interface against an object storage backend. It is implemented using the Thanos objstore.Bucket interface

func NewBucketRuleStore

func NewBucketRuleStore(bkt objstore.Bucket, userScannerCfg users.UsersScannerConfig, cfgProvider bucket.TenantConfigProvider, logger log.Logger, reg prometheus.Registerer) (*BucketRuleStore, error)

func (*BucketRuleStore) DeleteNamespace

func (b *BucketRuleStore) DeleteNamespace(ctx context.Context, userID string, namespace string) error

DeleteNamespace implements rules.RuleStore.

func (*BucketRuleStore) DeleteRuleGroup

func (b *BucketRuleStore) DeleteRuleGroup(ctx context.Context, userID string, namespace string, group string) error

DeleteRuleGroup implements rules.RuleStore.

func (*BucketRuleStore) GetRuleGroup

func (b *BucketRuleStore) GetRuleGroup(ctx context.Context, userID string, namespace string, group string) (*rulespb.RuleGroupDesc, error)

GetRuleGroup implements rules.RuleStore.

func (*BucketRuleStore) GetUserIndexUpdater added in v1.21.0

func (b *BucketRuleStore) GetUserIndexUpdater() *users.UserIndexUpdater

func (*BucketRuleStore) ListAllRuleGroups

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

ListAllRuleGroups implements rules.RuleStore.

func (*BucketRuleStore) ListAllUsers

func (b *BucketRuleStore) ListAllUsers(ctx context.Context) ([]string, error)

ListAllUsers implements rules.RuleStore.

func (*BucketRuleStore) ListRuleGroupsForUserAndNamespace

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

ListRuleGroupsForUserAndNamespace implements rules.RuleStore.

func (*BucketRuleStore) LoadRuleGroups

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

LoadRuleGroups implements rules.RuleStore.

func (*BucketRuleStore) SetRuleGroup

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

SetRuleGroup implements rules.RuleStore.

Jump to

Keyboard shortcuts

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