cert

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertCallbackRefreshDuration = 5 * time.Minute

CertCallbackRefreshDuration is exposed so that integration tests can crank up the reload speed.

Functions

func CachingCertificateLoader

func CachingCertificateLoader(certFile, keyFile string) func() (*tls.Certificate, error)

CachingCertificateLoader ensures that we don't hammer the filesystem when opening many connections the underlying cert files are read at most once every second

func StartClientCertRotating

func StartClientCertRotating(reload reloadFunc, conn Connection)

Types

type Connection

type Connection interface {
	Close() error
}

Jump to

Keyboard shortcuts

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