Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCertRoot string = "/app/config/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TLSManager ¶
type TLSManager struct {
// contains filtered or unexported fields
}
func NewTLSManager ¶
func NewTLSManager(hostName, rootPath string, gracePeriod time.Duration) *TLSManager
func (*TLSManager) GetTLSConfig ¶
func (tm *TLSManager) GetTLSConfig() *tls.Config
GetTLSConfig returns the current TLS configuration for the server.
func (*TLSManager) LoadCertificates ¶
func (tm *TLSManager) LoadCertificates() error
LoadCertificates loads and updates the TLS configuration.
func (*TLSManager) WatchCertificates ¶
func (tm *TLSManager) WatchCertificates(interval time.Duration)
WatchCertificates starts monitoring the certificate files for changes.
Click to show internal directories.
Click to hide internal directories.