Documentation
¶
Overview ¶
Package tls handles options for TLS (https) requests
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoCertificates = errors.New("tls: no certificates configured")
ErrNoCertificates is returned by GetCert() when no certs are configured
Functions ¶
func OptionsChanged ¶
OptionsChanged will return true if the TLS options for any backend is different between configs
Types ¶
type CertSwapper ¶
type CertSwapper interface {
GetCert(*tls.ClientHelloInfo) (*tls.Certificate, error)
SetCerts([]tls.Certificate)
}
CertSwapper is used by a TLSConfig to dynamically update the running Listener's Certificate list. This allows Trickster to load and unload TLS certificate configs without restarting the process
func NewSwapper ¶
func NewSwapper(certList []tls.Certificate) CertSwapper
NewSwapper returns a new CertSwapper based on the provided certList
Click to show internal directories.
Click to hide internal directories.