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

cache

package
v0.2.204 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncludeClusterObjects = "includeClusterObjects"
)

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(k8sClient k8sclient.K8sClientInterface, ruleCreator rules.RuleCreator, ignoreRuleBindings bool) *RBCache

func (*RBCache) AddHandler

func (c *RBCache) AddHandler(_ 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) ListRulesForObject

func (c *RBCache) ListRulesForObject(ctx context.Context, object *unstructured.Unstructured) []rules.RuleEvaluator

func (*RBCache) ModifyHandler

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

func (*RBCache) RefreshRules added in v0.2.149

func (c *RBCache) RefreshRules()

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