Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + var ErrUnableToGetStream = errors.New("unable to get a stream") + func DialServer(ctx context.Context, config DialServerConfig) (*grpc.ClientConn, error) + type Client interface + FetchUpdates func(ctx context.Context) (*Update, error) + NewJWTSVID func(ctx context.Context, entryID string, audience []string) (*JWTSVID, error) + NewX509SVIDs func(ctx context.Context, csrs map[string][]byte) (map[string]*X509SVID, error) + Release func() + RenewSVID func(ctx context.Context, csr []byte) (*X509SVID, error) + func New(c *Config) Client + type Config struct + Addr string + KeysAndBundle func() ([]*x509.Certificate, crypto.Signer, []*x509.Certificate) + Log logrus.FieldLogger + RotMtx *sync.RWMutex + TrustDomain spiffeid.TrustDomain + type DialServerConfig struct + Address string + GetAgentCertificate func() *tls.Certificate + GetBundle func() []*x509.Certificate + TrustDomain spiffeid.TrustDomain + type JWTSVID struct + ExpiresAt time.Time + IssuedAt time.Time + Token string + type Update struct + Bundles map[string]*common.Bundle + Entries map[string]*common.RegistrationEntry + type X509SVID struct + CertChain []byte + ExpiresAt int64