cert

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertManager

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

CertManager reloads certs and offers interfaces for fetching TLS configs. Currently, all the namespaces share the same certs but there might be per-namespace certs in the future.

func NewCertManager

func NewCertManager() *CertManager

NewCertManager creates a new CertManager.

func (*CertManager) Close

func (cm *CertManager) Close()

func (*CertManager) ClusterTLS

func (cm *CertManager) ClusterTLS() *tls.Config

func (*CertManager) Init

func (cm *CertManager) Init(cfg *config.Config, logger *zap.Logger, cfgch <-chan *config.Config) error

Init creates a CertManager and reloads certificates periodically. cfgch can be set to nil for the serverless tier because it has no config manager.

func (*CertManager) SQLTLS

func (cm *CertManager) SQLTLS() *tls.Config

func (*CertManager) ServerHTTPTLS added in v0.2.0

func (cm *CertManager) ServerHTTPTLS() *tls.Config

func (*CertManager) ServerSQLTLS added in v0.2.0

func (cm *CertManager) ServerSQLTLS() *tls.Config

func (*CertManager) SetRetryInterval

func (cm *CertManager) SetRetryInterval(interval time.Duration)

Jump to

Keyboard shortcuts

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