configdb

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 NewStore

func NewStore(c client.Client) *Store

NewStore constructs a Store

func (*Store) DeleteAlertConfig added in v1.3.0

func (c *Store) DeleteAlertConfig(ctx context.Context, user string) error

func (*Store) GetAlertConfig added in v1.3.0

func (c *Store) GetAlertConfig(ctx context.Context, user string) (alerts.AlertConfigDesc, error)

GetAlertConfig finds and returns the AlertManager configuration of an user.

func (*Store) ListAlertConfigs

func (c *Store) ListAlertConfigs(ctx context.Context) (map[string]alerts.AlertConfigDesc, error)

ListAlertConfigs implements RuleStore

func (*Store) SetAlertConfig added in v1.3.0

func (c *Store) SetAlertConfig(ctx context.Context, cfg alerts.AlertConfigDesc) error

Jump to

Keyboard shortcuts

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