cache

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RBCache

type RBCache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(config config.Config, k8sClient k8sclient.K8sClientInterface, ruleCreator rulecreator.RuleCreator) *RBCache

func NewCacheMock added in v0.2.285

func NewCacheMock(nodeName string) *RBCache

func (*RBCache) AddHandler

func (c *RBCache) AddHandler(ctx context.Context, obj runtime.Object)

func (*RBCache) AddNotifier

func (c *RBCache) AddNotifier(n *chan rulebindingmanager.RuleBindingNotify)

func (*RBCache) DeleteHandler

func (c *RBCache) DeleteHandler(_ context.Context, obj runtime.Object)

func (*RBCache) GetRuleCreator added in v0.2.145

func (c *RBCache) GetRuleCreator() rulecreator.RuleCreator

Expose the rule creator to be able to create rules from third party.

func (*RBCache) ListRulesForPod

func (c *RBCache) ListRulesForPod(namespace, name string) []rulemanagertypesv1.Rule

func (*RBCache) ModifyHandler

func (c *RBCache) ModifyHandler(ctx context.Context, obj runtime.Object)

func (*RBCache) RefreshRuleBindingsRules added in v0.3.3

func (c *RBCache) RefreshRuleBindingsRules()

func (*RBCache) WatchResources

func (c *RBCache) WatchResources() []watcher.WatchResource

Jump to

Keyboard shortcuts

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