Versions in this module Expand all Collapse all v2 v2.2.0 Feb 28, 2023 Changes in this version + func IDFromCert(cert *x509.Certificate) (spiffeid.ID, error) + func ParseAndVerify(rawCerts [][]byte, bundleSource x509bundle.Source, opts ...VerifyOption) (spiffeid.ID, [][]*x509.Certificate, error) + func Verify(certs []*x509.Certificate, bundleSource x509bundle.Source, ...) (spiffeid.ID, [][]*x509.Certificate, error) + type SVID struct + Certificates []*x509.Certificate + ID spiffeid.ID + PrivateKey crypto.Signer + func Load(certFile, keyFile string) (*SVID, error) + func Parse(certBytes, keyBytes []byte) (*SVID, error) + func ParseRaw(certBytes, keyBytes []byte) (*SVID, error) + func (s *SVID) GetX509SVID() (*SVID, error) + func (s *SVID) Marshal() ([]byte, []byte, error) + func (s *SVID) MarshalRaw() ([]byte, []byte, error) + type Source interface + GetX509SVID func() (*SVID, error) + type VerifyOption interface + func WithTime(now time.Time) VerifyOption