certs

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificates

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

func NewCertificates

func NewCertificates(caDir, ftDir, bdDir string) *Certificates

func (*Certificates) Clean

func (c *Certificates) Clean()

func (*Certificates) FrontendCertsEnabled

func (c *Certificates) FrontendCertsEnabled() bool

func (*Certificates) HandleTLSSecret

func (c *Certificates) HandleTLSSecret(secret *store.Secret, secretType SecretType) (certPath string, err error)

func (*Certificates) Refresh

func (c *Certificates) Refresh() (reload bool)

Refresh removes unused certs from HAProxyCertDir

func (*Certificates) Updated

func (c *Certificates) Updated() (reload bool)

type SecretCtx

type SecretCtx struct {
	Namespace  string
	Name       string
	SecretType SecretType
}

type SecretType

type SecretType int
const (
	NONE_CERT SecretType = iota
	FT_CERT
	FT_DEFAULT_CERT
	BD_CERT
	CA_CERT
)

Jump to

Keyboard shortcuts

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