bootstrap

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CertBytesValue = "tls.crt"
	KeyBytesValue  = "tls.key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FallbackCertificateManager

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

func NewFallbackCertificateManager

func NewFallbackCertificateManager(certManager certificate.Manager) *FallbackCertificateManager

func (*FallbackCertificateManager) Current

func (*FallbackCertificateManager) ServerHealthy

func (f *FallbackCertificateManager) ServerHealthy() bool

func (*FallbackCertificateManager) Start

func (f *FallbackCertificateManager) Start()

func (*FallbackCertificateManager) Stop

func (f *FallbackCertificateManager) Stop()

type FileCertificateManager

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

func NewFileCertificateManager

func NewFileCertificateManager(certBytesPath string, keyBytesPath string) *FileCertificateManager

func (*FileCertificateManager) Current

func (s *FileCertificateManager) Current() *tls.Certificate

func (*FileCertificateManager) ServerHealthy

func (f *FileCertificateManager) ServerHealthy() bool

func (*FileCertificateManager) Start

func (f *FileCertificateManager) Start()

func (*FileCertificateManager) Stop

func (f *FileCertificateManager) Stop()

type SecretCertificateManager

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

func NewSecretCertificateManager

func NewSecretCertificateManager(name string, namespace string, store cache.Store) *SecretCertificateManager

NewSecretCertificateManager takes a secret store and the name and the namespace of a secret. If there is a newer version of the secret in the cache, the next Current() call will immediately wield it. It takes resource versions into account to be efficient.

func (*SecretCertificateManager) Current

func (*SecretCertificateManager) ServerHealthy

func (s *SecretCertificateManager) ServerHealthy() bool

func (*SecretCertificateManager) Start

func (s *SecretCertificateManager) Start()

func (*SecretCertificateManager) Stop

func (s *SecretCertificateManager) Stop()

Jump to

Keyboard shortcuts

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