Documentation
¶
Overview ¶
Package tls provides common TLS utilities for HTTP and gRPC servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reloader ¶
type Reloader struct {
// contains filtered or unexported fields
}
Reloader manages dynamic reloading of TLS certificates and keys for servers.
func NewClientCertReloader ¶
NewClientCertReloader creates a reloader that only monitors a CA certificate without requiring a key. This is useful for client-side certificate verification where only the CA cert is needed.
func NewReloader ¶
NewReloader creates a new TLSReloader instance.
func (*Reloader) GetClientTLSConfig ¶
GetClientTLSConfig returns a TLS config for client-side certificate validation.
func (*Reloader) GetTLSConfig ¶
GetTLSConfig returns a TLS config using this reloader's certificate.
func (*Reloader) GetUpdateChannel ¶
func (r *Reloader) GetUpdateChannel() <-chan struct{}
GetUpdateChannel returns a channel that will be triggered when a certificate is updated.
Click to show internal directories.
Click to hide internal directories.