Versions in this module Expand all Collapse all v2 v2.2.0 Feb 28, 2023 Changes in this version + type Bundle struct + func FromJWTAuthorities(trustDomain spiffeid.TrustDomain, jwtAuthorities map[string]crypto.PublicKey) *Bundle + func Load(trustDomain spiffeid.TrustDomain, path string) (*Bundle, error) + func New(trustDomain spiffeid.TrustDomain) *Bundle + func Parse(trustDomain spiffeid.TrustDomain, bundleBytes []byte) (*Bundle, error) + func Read(trustDomain spiffeid.TrustDomain, r io.Reader) (*Bundle, error) + func (b *Bundle) AddJWTAuthority(keyID string, jwtAuthority crypto.PublicKey) error + func (b *Bundle) Clone() *Bundle + func (b *Bundle) Empty() bool + func (b *Bundle) Equal(other *Bundle) bool + func (b *Bundle) FindJWTAuthority(keyID string) (crypto.PublicKey, bool) + func (b *Bundle) GetJWTBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error) + func (b *Bundle) HasJWTAuthority(keyID string) bool + func (b *Bundle) JWTAuthorities() map[string]crypto.PublicKey + func (b *Bundle) Marshal() ([]byte, error) + func (b *Bundle) RemoveJWTAuthority(keyID string) + func (b *Bundle) SetJWTAuthorities(jwtAuthorities map[string]crypto.PublicKey) + func (b *Bundle) TrustDomain() spiffeid.TrustDomain + type Set struct + func NewSet(bundles ...*Bundle) *Set + func (s *Set) Add(bundle *Bundle) + func (s *Set) Bundles() []*Bundle + func (s *Set) Get(trustDomain spiffeid.TrustDomain) (*Bundle, bool) + func (s *Set) GetJWTBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error) + func (s *Set) Has(trustDomain spiffeid.TrustDomain) bool + func (s *Set) Len() int + func (s *Set) Remove(trustDomain spiffeid.TrustDomain) + type Source interface + GetJWTBundleForTrustDomain func(trustDomain spiffeid.TrustDomain) (*Bundle, error)