hintsfilter

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hintsfilter deduplicates registration entries (and the identities derived from them) so that callers of the agent's local APIs see at most one entry per hint. Used by both the Workload API and the SPIFFE Broker API so that hint semantics are consistent across them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterIdentities

func FilterIdentities(identities []cache.Identity, log logrus.FieldLogger) []cache.Identity

FilterIdentities returns identities whose underlying registration entries survive hint deduplication. Same tie-breaking rules as FilterRegistrations.

func FilterRegistrations

func FilterRegistrations(entries []*common.RegistrationEntry, log logrus.FieldLogger) []*common.RegistrationEntry

FilterRegistrations returns entries with duplicate hints removed, preferring the older entry (by CreatedAt) with EntryId as the deterministic tie-breaker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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