Help us shape the future of Go! Take the 2026 Go Developer Survey

configdb

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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