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[T Identity](identities []T, log logrus.FieldLogger) []T
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 ¶
type Identity ¶ added in v1.16.0
type Identity interface {
GetEntry() *common.RegistrationEntry
}
Identity is any cached workload identity that can be traced back to the registration entry it was issued for.