Versions in this module Expand all Collapse all v0 v0.2.0-dev.1 May 10, 2023 v0.1.0 Feb 15, 2023 Changes in this version + var ConnectionTrackerLogger logr.Logger = logr.Discard() + var ErrInvalidCertificate = errors.New("invalid tls certificate") + var ErrNilRead = errors.New("cannot read from nilConn") + var ErrNilWrite = errors.New("cannot write to nilConn") + func NewConnectionToContext(ctx context.Context) context.Context + func NewNilConn() net.Conn + func NewWrappedListener(l net.Listener) net.Listener + func SetConnectionToContextConnectionHolder(ctx context.Context, conn net.Conn) bool + func WrapHTTPTransport(rt http.RoundTripper, dialer ConnectionDialer) http.RoundTripper + func WrapTLSConfig(config *tls.Config) *tls.Config + func WrappedConnectionToContext(ctx context.Context, conn net.Conn) context.Context + type Certificate interface + GetCertificate func() *x509.Certificate + GetFirstDNSName func() string + GetFirstIP func() string + GetFirstURI func() string + GetSHA256Digest func() string + GetSubject func() string + func NewCertificate(cert *x509.Certificate) Certificate + func ParseTLSCertificate(cert *tls.Certificate) (Certificate, error) + type ConnWithTLSConnectionState interface + ConnectionState func() tls.ConnectionState + type Connection interface + GetConnectionState func() *tls.ConnectionState + GetLocalCertificate func() Certificate + GetOriginalAddress func() string + GetPeerCertificate func() Certificate + GetTimeToFirstByte func() time.Time + NetConn func() net.Conn + SetConnWithTLSConnectionState func(ConnWithTLSConnectionState) + SetLocalCertificate func(cert *tls.Certificate) + SetNetConn func(net.Conn) + SetOptions func(opts ...WrappedConnectionOption) + func NewWrappedConnection(conn net.Conn, opts ...WrappedConnectionOption) Connection + func WrappedConnectionFromContext(ctx context.Context) (Connection, bool) + func WrappedConnectionFromNetConn(conn net.Conn) (Connection, bool) + type ConnectionCloseWrapper interface + AddParentCloseWrapper func(ConnectionCloseWrapper) + AfterClose func(net.Conn) error + BeforeClose func(net.Conn) error + type ConnectionDialer interface + DialTLSContext func(ctx context.Context, network, address string) (net.Conn, error) + func NewDialer(opts ...DialerOption) ConnectionDialer + func NewDialerWithTLS(certFile, keyFile string, insecure bool, opts ...DialerOption) (ConnectionDialer, error) + func NewDialerWithTLSConfig(config *tls.Config, opts ...DialerOption) ConnectionDialer + type ConnectionHolder interface + NetConn func() net.Conn + SetConn func(net.Conn) + func ConnectionHolderFromContext(ctx context.Context) (ConnectionHolder, bool) + type DialWrapper interface + AddParentDialerWrapper func(DialWrapper) + AfterDial func(ctx context.Context, conn net.Conn, network, addr string) error + BeforeDial func(ctx context.Context, network, addr string) error + type DialerOption func(*dialer) + func DialerWithDialerWrapper(w DialWrapper) DialerOption + func DialerWithWrappedConnectionOptions(opts ...WrappedConnectionOption) DialerOption + type Server interface + GetHTTPServer func() *http.Server + GetUnifiedListener func() ltls.UnifiedListener + Serve func(l net.Listener) error + ServeTLS func(l net.Listener, certFile, keyFile string) error + ServeWithTLSConfig func(l net.Listener, config *tls.Config) error + func WrapHTTPServer(srv *http.Server) Server + type WrappedConnectionOption func(*wrappedConn) + func WrappedConnectionWithCloserWrapper(closeWrapper ConnectionCloseWrapper) WrappedConnectionOption + func WrappedConnectionWithOriginalAddress(address string) WrappedConnectionOption