Documentation
¶
Index ¶
- type Client
- func (l *Client) DeleteRuleGroup(ctx context.Context, userID, namespace string, group string) error
- func (l *Client) GetRuleGroup(ctx context.Context, userID, namespace, group string) (*rules.RuleGroupDesc, error)
- func (l *Client) ListAllRuleGroups(ctx context.Context) (map[string]rules.RuleGroupList, error)
- func (l *Client) ListRuleGroups(ctx context.Context, userID string, namespace string) (rules.RuleGroupList, error)
- func (l *Client) SetRuleGroup(ctx context.Context, userID, namespace string, group *rules.RuleGroupDesc) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client expects to load already existing rules located at:
cfg.Directory / userID / namespace
func NewLocalRulesClient ¶
func (*Client) DeleteRuleGroup ¶
DeleteRuleGroup implements RuleStore
func (*Client) GetRuleGroup ¶
func (l *Client) GetRuleGroup(ctx context.Context, userID, namespace, group string) (*rules.RuleGroupDesc, error)
GetRuleGroup implements RuleStore
func (*Client) ListAllRuleGroups ¶
ListAllRuleGroups implements RuleStore
func (*Client) ListRuleGroups ¶
func (l *Client) ListRuleGroups(ctx context.Context, userID string, namespace string) (rules.RuleGroupList, error)
ListRuleGroups implements RuleStore
func (*Client) SetRuleGroup ¶
func (l *Client) SetRuleGroup(ctx context.Context, userID, namespace string, group *rules.RuleGroupDesc) error
SetRuleGroup implements RuleStore
Click to show internal directories.
Click to hide internal directories.