Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func GetRegistrationEntries(fileName string) []*common.RegistrationEntry + func GetRegistrationEntriesMap(fileName string) map[string][]*common.RegistrationEntry + func LoadBundle(path string) ([]*x509.Certificate, error) + func LoadBundleFixture() ([]*x509.Certificate, error) + func LoadCAFixture() (ca *x509.Certificate, key *ecdsa.PrivateKey, err error) + func LoadCert(path string) (*x509.Certificate, error) + func LoadCertAndKey(crtPath, keyPath string) (*x509.Certificate, *ecdsa.PrivateKey, error) + func LoadKey(path string) (*ecdsa.PrivateKey, error) + func LoadPEM(path string) (*pem.Block, error) + func LoadSVIDFixture() (svid *x509.Certificate, key *ecdsa.PrivateKey, err error) + func NewCATemplate(clk clock.Clock, trustDomain spiffeid.TrustDomain) (*x509.Certificate, error) + func NewCSRTemplate(spiffeID string) ([]byte, crypto.PublicKey, error) + func NewCSRTemplateWithKey(spiffeID string, key crypto.Signer) ([]byte, error) + func NewSVIDTemplate(clk clock.Clock, spiffeID string) (*x509.Certificate, error) + func NewSVIDTemplateFromCSR(clk clock.Clock, csr []byte, ca *x509.Certificate, ttl int) (*x509.Certificate, error) + func ProjectRoot() string + func RaceTest(t *testing.T, fn func(*testing.T)) + func RunWithTimeout(t *testing.T, timeout time.Duration, code func()) time.Duration + func SelfSign(req *x509.Certificate) (*x509.Certificate, *ecdsa.PrivateKey, error) + func Sign(req, parent *x509.Certificate, signerPrivateKey interface{}) (*x509.Certificate, *ecdsa.PrivateKey, error) + type OutputRedirection struct + func (redirector *OutputRedirection) Finish() (string, error) + func (redirector *OutputRedirection) Start(output *os.File) error