Documentation ¶
Overview ¶
The selector package exports functions useful for manipulating and generating spire selectors
Index ¶
Constants ¶
View Source
const Delimiter = ":"
Type and Value are delimited by a colon (:) e.g. "unix:uid:1000"
Variables ¶
This section is empty.
Functions ¶
func EqualSet ¶
func EqualSet(a, b *set) bool
EqualSet determines whether two sets of selectors are equal or not
func IncludesSet ¶
func IncludesSet(s1, s2 *set) bool
IncludesSet returns true if s2 is included in s1. This is, all the s2 selectors are also present in s1.
func PowerSet ¶
func PowerSet(selectors *set) <-chan Set
PowerSet implements a range-able combination generator. It takes a set, and returns a channel over which all possible combinations of selectors are eventually returned. It is meant to aid in the discovery of applicable cache entries, given the superset of selectors discovered during attestation.
Types ¶
Click to show internal directories.
Click to hide internal directories.