Help us shape the future of Go! Take the 2026 Go Developer Survey

bucketclient

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketAlertStore

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

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

func (*BucketAlertStore) DeleteAlertConfig

func (s *BucketAlertStore) DeleteAlertConfig(ctx context.Context, userID string) error

DeleteAlertConfig implements alertstore.AlertStore.

func (*BucketAlertStore) DeleteFullState added in v1.9.0

func (s *BucketAlertStore) DeleteFullState(ctx context.Context, userID string) error

DeleteFullState implements alertstore.AlertStore.

func (*BucketAlertStore) GetAlertConfig

func (s *BucketAlertStore) GetAlertConfig(ctx context.Context, userID string) (alertspb.AlertConfigDesc, error)

GetAlertConfig implements alertstore.AlertStore.

func (*BucketAlertStore) GetAlertConfigs

func (s *BucketAlertStore) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)

GetAlertConfigs implements alertstore.AlertStore.

func (*BucketAlertStore) GetFullState added in v1.9.0

func (s *BucketAlertStore) GetFullState(ctx context.Context, userID string) (alertspb.FullStateDesc, error)

GetFullState implements alertstore.AlertStore.

func (*BucketAlertStore) GetUserIndexUpdater added in v1.21.0

func (s *BucketAlertStore) GetUserIndexUpdater() *users.UserIndexUpdater

GetUserIndexUpdater implements alertstore.AlertStore.

func (*BucketAlertStore) ListAllUsers

func (s *BucketAlertStore) ListAllUsers(ctx context.Context) ([]string, error)

ListAllUsers implements alertstore.AlertStore.

func (*BucketAlertStore) ListUsersWithFullState added in v1.10.0

func (s *BucketAlertStore) ListUsersWithFullState(ctx context.Context) ([]string, error)

ListUsersWithFullState implements alertstore.AlertStore.

func (*BucketAlertStore) SetAlertConfig

func (s *BucketAlertStore) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error

SetAlertConfig implements alertstore.AlertStore.

func (*BucketAlertStore) SetFullState added in v1.9.0

func (s *BucketAlertStore) SetFullState(ctx context.Context, userID string, fs alertspb.FullStateDesc) error

SetFullState implements alertstore.AlertStore.

Jump to

Keyboard shortcuts

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