Documentation
¶
Index ¶
- Constants
- type RBCache
- func (c *RBCache) AddHandler(_ context.Context, obj runtime.Object)
- func (c *RBCache) AddNotifier(n *chan rulebindingmanager.RuleBindingNotify)
- func (c *RBCache) DeleteHandler(_ context.Context, obj runtime.Object)
- func (c *RBCache) ListRulesForObject(ctx context.Context, object *unstructured.Unstructured) []rules.RuleEvaluator
- func (c *RBCache) ModifyHandler(_ context.Context, obj runtime.Object)
- func (c *RBCache) RefreshRules()
- func (c *RBCache) WatchResources() []watcher.WatchResource
Constants ¶
View Source
const ( // IncludeClusterObjects is a label on a RuntimeRuleAlertBinding. A binding // labelled includeClusterObjects: "false" applies to namespaced objects // only; without the label it also applies to cluster-scoped objects. It is // read from the binding, never from the admitted object, so whoever // creates a cluster-scoped object cannot turn off its evaluation. 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, excludeClusterObjects bool) *RBCache
func (*RBCache) AddNotifier ¶
func (c *RBCache) AddNotifier(n *chan rulebindingmanager.RuleBindingNotify)
func (*RBCache) DeleteHandler ¶
func (*RBCache) ListRulesForObject ¶
func (c *RBCache) ListRulesForObject(ctx context.Context, object *unstructured.Unstructured) []rules.RuleEvaluator
func (*RBCache) ModifyHandler ¶
func (*RBCache) RefreshRules ¶ added in v0.2.149
func (c *RBCache) RefreshRules()
func (*RBCache) WatchResources ¶
func (c *RBCache) WatchResources() []watcher.WatchResource
Click to show internal directories.
Click to hide internal directories.