Versions in this module Expand all Collapse all v1 v1.1.0 Nov 6, 2026 v1.0.0 Nov 6, 2026 Changes in this version + func IDFromContext(ctx context.Context) (string, bool) + func Parse(raw string) (string, error) + func PeerID(state tls.ConnectionState) (string, bool) + type Config struct + AllowTrustDomain bool + AllowedPeers []string + Authorize func(string) bool + ExpectedID string + Socket string + Timeout time.Duration + TrustDomain string + func FromEnv() (Config, bool, error) + type Source struct + func New(ctx context.Context, c Config) (*Source, error) + func (s *Source) Allows(peer string) bool + func (s *Source) ClientTLS() *tls.Config + func (s *Source) Close() error + func (s *Source) GetX509SVID() (*x509svid.SVID, error) + func (s *Source) Identity() (string, error) + func (s *Source) ServerTLS() *tls.Config