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

testpolicy

package
v1.20.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicyMetricsNoop added in v1.18.0

func NewPolicyMetricsNoop() types.PolicyMetrics

Types

type DummySelectorCacheUser

type DummySelectorCacheUser struct{}

func (*DummySelectorCacheUser) GetRuleLabels added in v1.20.0

func (*DummySelectorCacheUser) IdentitySelectionCommit

func (d *DummySelectorCacheUser) IdentitySelectionCommit(logger *slog.Logger, txn types.SelectorSnapshot)

func (*DummySelectorCacheUser) IdentitySelectionUpdated

func (d *DummySelectorCacheUser) IdentitySelectionUpdated(logger *slog.Logger, selector types.CachedSelector, added, deleted []identity.NumericIdentity)

func (*DummySelectorCacheUser) IsPeerSelector

func (d *DummySelectorCacheUser) IsPeerSelector() bool

type SelectorCacheObserver added in v1.20.0

type SelectorCacheObserver struct {
	Cache SelectorCacheUpdater
}

func (SelectorCacheObserver) LocalEndpointIdentityAdded added in v1.20.0

func (o SelectorCacheObserver) LocalEndpointIdentityAdded(id *identity.Identity)

func (SelectorCacheObserver) LocalEndpointIdentityRemoved added in v1.20.0

func (o SelectorCacheObserver) LocalEndpointIdentityRemoved(id *identity.Identity)

type SelectorCacheUpdater added in v1.20.0

type SelectorCacheUpdater interface {
	UpdateIdentities(added, deleted identity.IdentityMap, wg *sync.WaitGroup) bool
}

Jump to

Keyboard shortcuts

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