Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + const Name + type Client struct + func NewLocalRulesClient(cfg Config, loader promRules.GroupLoader) (*Client, error) + func (l *Client) DeleteNamespace(ctx context.Context, userID, namespace string) error + func (l *Client) DeleteRuleGroup(ctx context.Context, userID, namespace string, group string) error + func (l *Client) GetRuleGroup(ctx context.Context, userID, namespace, group string) (*rulespb.RuleGroupDesc, error) + func (l *Client) ListAllRuleGroups(ctx context.Context) (map[string]rulespb.RuleGroupList, error) + func (l *Client) ListAllUsers(ctx context.Context) ([]string, error) + func (l *Client) ListRuleGroupsForUserAndNamespace(ctx context.Context, userID string, namespace string) (rulespb.RuleGroupList, error) + func (l *Client) LoadRuleGroups(_ context.Context, _ map[string]rulespb.RuleGroupList) error + func (l *Client) SetRuleGroup(ctx context.Context, userID, namespace string, group *rulespb.RuleGroupDesc) error + type Config struct + Directory string + func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)