Documentation ¶
Index ¶
- Constants
- type ConfigRuleStore
- func (c *ConfigRuleStore) DeleteNamespace(ctx context.Context, userID, namespace string) error
- func (c *ConfigRuleStore) DeleteRuleGroup(ctx context.Context, userID, namespace string, group string) error
- func (c *ConfigRuleStore) GetRuleGroup(ctx context.Context, userID, namespace, group string) (*rulespb.RuleGroupDesc, error)
- func (c *ConfigRuleStore) ListAllRuleGroups(ctx context.Context) (map[string]rulespb.RuleGroupList, error)
- func (c *ConfigRuleStore) ListAllUsers(ctx context.Context) ([]string, error)
- func (c *ConfigRuleStore) ListRuleGroupsForUserAndNamespace(ctx context.Context, userID string, namespace string) (rulespb.RuleGroupList, error)
- func (c *ConfigRuleStore) LoadRuleGroups(ctx context.Context, groupsToLoad map[string]rulespb.RuleGroupList) (map[string]rulespb.RuleGroupList, error)
- func (c *ConfigRuleStore) SetRuleGroup(ctx context.Context, userID, namespace string, group *rulespb.RuleGroupDesc) error
- func (c *ConfigRuleStore) SupportsModifications() bool
Constants ¶
View Source
const (
Name = "configdb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigRuleStore ¶
type ConfigRuleStore struct {
// contains filtered or unexported fields
}
ConfigRuleStore is a concrete implementation of RuleStore that sources rules from the config service
func NewConfigRuleStore ¶
func NewConfigRuleStore(c client.Client) *ConfigRuleStore
NewConfigRuleStore constructs a ConfigRuleStore
func (*ConfigRuleStore) DeleteNamespace ¶
func (c *ConfigRuleStore) DeleteNamespace(ctx context.Context, userID, namespace string) error
DeleteNamespace is not implemented
func (*ConfigRuleStore) DeleteRuleGroup ¶
func (c *ConfigRuleStore) DeleteRuleGroup(ctx context.Context, userID, namespace string, group string) error
DeleteRuleGroup is not implemented
func (*ConfigRuleStore) GetRuleGroup ¶
func (c *ConfigRuleStore) GetRuleGroup(ctx context.Context, userID, namespace, group string) (*rulespb.RuleGroupDesc, error)
GetRuleGroup is not implemented
func (*ConfigRuleStore) ListAllRuleGroups ¶
func (c *ConfigRuleStore) ListAllRuleGroups(ctx context.Context) (map[string]rulespb.RuleGroupList, error)
ListAllRuleGroups implements RuleStore
func (*ConfigRuleStore) ListAllUsers ¶
func (c *ConfigRuleStore) ListAllUsers(ctx context.Context) ([]string, error)
func (*ConfigRuleStore) ListRuleGroupsForUserAndNamespace ¶
func (c *ConfigRuleStore) ListRuleGroupsForUserAndNamespace(ctx context.Context, userID string, namespace string) (rulespb.RuleGroupList, error)
func (*ConfigRuleStore) LoadRuleGroups ¶
func (c *ConfigRuleStore) LoadRuleGroups(ctx context.Context, groupsToLoad map[string]rulespb.RuleGroupList) (map[string]rulespb.RuleGroupList, error)
func (*ConfigRuleStore) SetRuleGroup ¶
func (c *ConfigRuleStore) SetRuleGroup(ctx context.Context, userID, namespace string, group *rulespb.RuleGroupDesc) error
SetRuleGroup is not implemented
func (*ConfigRuleStore) SupportsModifications ¶
func (c *ConfigRuleStore) SupportsModifications() bool
Click to show internal directories.
Click to hide internal directories.