Documentation ¶
Index ¶
- Constants
- type Store
- func (c *Store) DeleteAlertConfig(ctx context.Context, user string) error
- func (c *Store) DeleteFullState(ctx context.Context, user string) error
- func (c *Store) GetAlertConfig(ctx context.Context, user string) (alertspb.AlertConfigDesc, error)
- func (c *Store) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)
- func (c *Store) GetFullState(ctx context.Context, user string) (alertspb.FullStateDesc, error)
- func (c *Store) ListAllUsers(ctx context.Context) ([]string, error)
- func (c *Store) ListUsersWithFullState(ctx context.Context) ([]string, error)
- func (c *Store) SetAlertConfig(ctx context.Context, cfg alertspb.AlertConfigDesc) error
- func (c *Store) SetFullState(ctx context.Context, user string, cfg alertspb.FullStateDesc) error
Constants ¶
View Source
const (
Name = "configdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a concrete implementation of RuleStore that sources rules from the config service
func (*Store) DeleteAlertConfig ¶
DeleteAlertConfig implements alertstore.AlertStore.
func (*Store) DeleteFullState ¶ added in v1.9.0
DeleteFullState implements alertstore.AlertStore.
func (*Store) GetAlertConfig ¶
GetAlertConfig implements alertstore.AlertStore.
func (*Store) GetAlertConfigs ¶
func (c *Store) GetAlertConfigs(ctx context.Context, userIDs []string) (map[string]alertspb.AlertConfigDesc, error)
GetAlertConfigs implements alertstore.AlertStore.
func (*Store) GetFullState ¶ added in v1.9.0
GetFullState implements alertstore.AlertStore.
func (*Store) ListAllUsers ¶
ListAllUsers implements alertstore.AlertStore.
func (*Store) ListUsersWithFullState ¶ added in v1.10.0
ListUsersWithFullState implements alertstore.AlertStore.
func (*Store) SetAlertConfig ¶
SetAlertConfig implements alertstore.AlertStore.
func (*Store) SetFullState ¶ added in v1.9.0
SetFullState implements alertstore.AlertStore.
Click to show internal directories.
Click to hide internal directories.