Versions in this module Expand all Collapse all v3 v3.0.0 Apr 8, 2024 Changes in this version + const Name + type Client struct + func NewLocalRulesClient(cfg Config, loader promRules.GroupLoader) (*Client, error) + func (l *Client) DeleteNamespace(_ context.Context, _, _ string) error + func (l *Client) DeleteRuleGroup(_ context.Context, _, _ string, _ string) error + func (l *Client) GetRuleGroup(_ context.Context, _, _, _ string) (*rulespb.RuleGroupDesc, error) + func (l *Client) ListAllRuleGroups(ctx context.Context) (map[string]rulespb.RuleGroupList, error) + func (l *Client) ListAllUsers(_ 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(_ context.Context, _, _ string, _ *rulespb.RuleGroupDesc) error + type Config struct + Directory string + func (cfg *Config) RegisterFlagsWithPrefix(prefix string, f *flag.FlagSet)