tlsmanager

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 9 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL