Versions in this module Expand all Collapse all v2 v2.2.0 Feb 28, 2023 Changes in this version + func Dial(ctx context.Context, network, addr string, authorizer tlsconfig.Authorizer, ...) (net.Conn, error) + func DialWithMode(ctx context.Context, network, addr string, mode DialMode, ...) (_ net.Conn, err error) + func Listen(ctx context.Context, network, laddr string, authorizer tlsconfig.Authorizer, ...) (net.Listener, error) + func ListenWithMode(ctx context.Context, network, laddr string, mode ListenMode, ...) (net.Listener, error) + func NewListener(ctx context.Context, inner net.Listener, authorizer tlsconfig.Authorizer, ...) (net.Listener, error) + func NewListenerWithMode(ctx context.Context, inner net.Listener, mode ListenMode, ...) (_ net.Listener, err error) + func PeerIDFromConn(conn net.Conn) (spiffeid.ID, error) + type DialMode interface + func MTLSClient(authorizer tlsconfig.Authorizer) DialMode + func MTLSClientWithRawConfig(authorizer tlsconfig.Authorizer, svid x509svid.Source, ...) DialMode + func MTLSClientWithSource(authorizer tlsconfig.Authorizer, source *workloadapi.X509Source) DialMode + func MTLSClientWithSourceOptions(authorizer tlsconfig.Authorizer, options ...workloadapi.X509SourceOption) DialMode + func MTLSWebClient(roots *x509.CertPool) DialMode + func MTLSWebClientWithRawConfig(roots *x509.CertPool, svid x509svid.Source) DialMode + func MTLSWebClientWithSource(roots *x509.CertPool, source *workloadapi.X509Source) DialMode + func MTLSWebClientWithSourceOptions(roots *x509.CertPool, options ...workloadapi.X509SourceOption) DialMode + func TLSClient(authorizer tlsconfig.Authorizer) DialMode + func TLSClientWithRawConfig(authorizer tlsconfig.Authorizer, bundle x509bundle.Source) DialMode + func TLSClientWithSource(authorizer tlsconfig.Authorizer, source *workloadapi.X509Source) DialMode + func TLSClientWithSourceOptions(authorizer tlsconfig.Authorizer, options ...workloadapi.X509SourceOption) DialMode + type DialOption interface + func WithDialTLSConfigBase(base *tls.Config) DialOption + func WithDialTLSOptions(opts ...tlsconfig.Option) DialOption + func WithDialer(dialer *net.Dialer) DialOption + type ListenMode interface + func MTLSServer(authorizer tlsconfig.Authorizer) ListenMode + func MTLSServerWithRawConfig(authorizer tlsconfig.Authorizer, svid x509svid.Source, ...) ListenMode + func MTLSServerWithSource(authorizer tlsconfig.Authorizer, source *workloadapi.X509Source) ListenMode + func MTLSServerWithSourceOptions(authorizer tlsconfig.Authorizer, options ...workloadapi.X509SourceOption) ListenMode + func MTLSWebServer(authorizer tlsconfig.Authorizer, cert *tls.Certificate) ListenMode + func MTLSWebServerWithRawConfig(authorizer tlsconfig.Authorizer, cert *tls.Certificate, ...) ListenMode + func MTLSWebServerWithSource(authorizer tlsconfig.Authorizer, cert *tls.Certificate, ...) ListenMode + func MTLSWebServerWithSourceOptions(authorizer tlsconfig.Authorizer, cert *tls.Certificate, ...) ListenMode + func TLSServer() ListenMode + func TLSServerWithRawConfig(svid x509svid.Source) ListenMode + func TLSServerWithSource(source *workloadapi.X509Source) ListenMode + func TLSServerWithSourceOptions(options ...workloadapi.X509SourceOption) ListenMode + type ListenOption interface + func WithListenTLSConfigBase(base *tls.Config) ListenOption + func WithListenTLSOptions(opts ...tlsconfig.Option) ListenOption + type PeerIDGetter interface + PeerID func() (spiffeid.ID, error)