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 FromJWTBundle(jwtBundle *jwtbundle.Bundle) *Bundle + func FromX509Authorities(trustDomain spiffeid.TrustDomain, x509Authorities []*x509.Certificate) *Bundle + func FromX509Bundle(x509Bundle *x509bundle.Bundle) *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) AddX509Authority(x509Authority *x509.Certificate) + func (b *Bundle) ClearRefreshHint() + func (b *Bundle) ClearSequenceNumber() + 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) GetBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error) + func (b *Bundle) GetJWTBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*jwtbundle.Bundle, error) + func (b *Bundle) GetX509BundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*x509bundle.Bundle, error) + func (b *Bundle) HasJWTAuthority(keyID string) bool + func (b *Bundle) HasX509Authority(x509Authority *x509.Certificate) bool + func (b *Bundle) JWTAuthorities() map[string]crypto.PublicKey + func (b *Bundle) JWTBundle() *jwtbundle.Bundle + func (b *Bundle) Marshal() ([]byte, error) + func (b *Bundle) RefreshHint() (refreshHint time.Duration, ok bool) + func (b *Bundle) RemoveJWTAuthority(keyID string) + func (b *Bundle) RemoveX509Authority(x509Authority *x509.Certificate) + func (b *Bundle) SequenceNumber() (uint64, bool) + func (b *Bundle) SetJWTAuthorities(jwtAuthorities map[string]crypto.PublicKey) + func (b *Bundle) SetRefreshHint(refreshHint time.Duration) + func (b *Bundle) SetSequenceNumber(sequenceNumber uint64) + func (b *Bundle) SetX509Authorities(authorities []*x509.Certificate) + func (b *Bundle) TrustDomain() spiffeid.TrustDomain + func (b *Bundle) X509Authorities() []*x509.Certificate + func (b *Bundle) X509Bundle() *x509bundle.Bundle + 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) GetBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*Bundle, error) + func (s *Set) GetJWTBundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*jwtbundle.Bundle, error) + func (s *Set) GetX509BundleForTrustDomain(trustDomain spiffeid.TrustDomain) (*x509bundle.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 + GetBundleForTrustDomain func(trustDomain spiffeid.TrustDomain) (*Bundle, error)