tls

package
v0.0.0-...-bb27e5e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManager

type CertificateManager struct {
	// contains filtered or unexported fields
}

CertificateManager 证书管理器

func NewCertificateManager

func NewCertificateManager(cfg *config.Config) *CertificateManager

NewCertificateManager 创建证书管理器

func (*CertificateManager) EnsureCertificates

func (cm *CertificateManager) EnsureCertificates() error

EnsureCertificates 确保证书存在

func (*CertificateManager) GetCertificate

func (cm *CertificateManager) GetCertificate(name string) (*tls.Certificate, error)

GetCertificate 获取证书

func (*CertificateManager) GetTLSConfig

func (cm *CertificateManager) GetTLSConfig(name string) (*tls.Config, error)

GetTLSConfig 获取TLS配置

func (*CertificateManager) ReloadCertificate

func (cm *CertificateManager) ReloadCertificate(name, certFile, keyFile string) error

ReloadCertificate 重新加载证书

Jump to

Keyboard shortcuts

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