listener

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicyMetricsListener

func NewPolicyMetricsListener() kyverno.PolicyListener

NewPolicyMetricsListener for Policy kyverno.LifecycleEvent

func NewStoreListener

func NewStoreListener(store *kyverno.PolicyStore) kyverno.PolicyListener

NewStoreListener for Policy kyverno.LifecycleEvent

Types

type Cache added in v1.5.1

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

func NewCache added in v1.5.1

func NewCache() *Cache

func (*Cache) Add added in v1.5.1

func (c *Cache) Add(polr kyverno.Policy)

func (*Cache) GetReportLabels added in v1.5.1

func (c *Cache) GetReportLabels(id string) []*CacheItem

func (*Cache) Remove added in v1.5.1

func (c *Cache) Remove(id string)

type CacheItem added in v1.5.1

type CacheItem struct {
	Labels prometheus.Labels
	Value  float64
}

Jump to

Keyboard shortcuts

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