certificate

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertCache

type CertCache struct {
	TLSConf tls.Config
	// contains filtered or unexported fields
}

CertCache caches certificates and CA pool.

func NewCertCache

func NewCertCache(ctx context.Context) (*CertCache, error)

NewCertCache creates and starts the certificate cache that watches Activators certificate.

func (*CertCache) GetCertificate

func (cr *CertCache) GetCertificate(_ *tls.ClientHelloInfo) (*tls.Certificate, error)

GetCertificate returns the cached certificates.

func (*CertCache) TLSContext added in v0.39.0

func (cr *CertCache) TLSContext() pkgnet.DialTLSContextFunc

TLSContext returns DialTLSContextFunc.

Jump to

Keyboard shortcuts

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