Documentation ¶
Overview ¶
Package tls provides a mockable wrapper for crypto/tls.
Index ¶
- type Impl
- func (*Impl) CipherSuiteName(id uint16) string
- func (*Impl) CipherSuites() []*tls.CipherSuite
- func (*Impl) Client(conn net.Conn, config *tls.Config) *tls.Conn
- func (*Impl) Dial(network string, addr string, config *tls.Config) (*tls.Conn, error)
- func (*Impl) DialWithDialer(dialer *net.Dialer, network string, addr string, config *tls.Config) (*tls.Conn, error)
- func (*Impl) InsecureCipherSuites() []*tls.CipherSuite
- func (*Impl) Listen(network string, laddr string, config *tls.Config) (net.Listener, error)
- func (*Impl) LoadX509KeyPair(certFile string, keyFile string) (tls.Certificate, error)
- func (*Impl) NewLRUClientSessionCache(capacity int) tls.ClientSessionCache
- func (*Impl) NewListener(inner net.Listener, config *tls.Config) net.Listener
- func (*Impl) Server(conn net.Conn, config *tls.Config) *tls.Conn
- func (*Impl) X509KeyPair(certPEMBlock []byte, keyPEMBlock []byte) (tls.Certificate, error)
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Impl ¶
type Impl struct{}
func (*Impl) CipherSuiteName ¶
func (*Impl) CipherSuites ¶
func (*Impl) CipherSuites() []*tls.CipherSuite
func (*Impl) DialWithDialer ¶
func (*Impl) InsecureCipherSuites ¶
func (*Impl) InsecureCipherSuites() []*tls.CipherSuite
func (*Impl) LoadX509KeyPair ¶
func (*Impl) NewLRUClientSessionCache ¶
func (*Impl) NewLRUClientSessionCache(capacity int) tls.ClientSessionCache
func (*Impl) NewListener ¶
func (*Impl) X509KeyPair ¶
type Interface ¶
type Interface interface { CipherSuiteName(id uint16) string CipherSuites() []*tls.CipherSuite Client(conn net.Conn, config *tls.Config) *tls.Conn Dial(network string, addr string, config *tls.Config) (*tls.Conn, error) DialWithDialer(dialer *net.Dialer, network string, addr string, config *tls.Config) (*tls.Conn, error) InsecureCipherSuites() []*tls.CipherSuite Listen(network string, laddr string, config *tls.Config) (net.Listener, error) LoadX509KeyPair(certFile string, keyFile string) (tls.Certificate, error) NewLRUClientSessionCache(capacity int) tls.ClientSessionCache NewListener(inner net.Listener, config *tls.Config) net.Listener Server(conn net.Conn, config *tls.Config) *tls.Conn X509KeyPair(certPEMBlock []byte, keyPEMBlock []byte) (tls.Certificate, error) }
Click to show internal directories.
Click to hide internal directories.