certs

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 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 interface {
	// Add takes a secret and its type and creats or updates the corresponding certificate
	AddSecret(secret *store.Secret, secretType SecretType) (certPath string, err error)
	// FrontCertsInuse returns true if a frontend certificate is configured.
	FrontCertsInUse() bool
	// Updated returns true if there is any updadted/created certificate
	CertsUpdated() bool
	// Refresh removes unused certs from HAProxyCertDir
	RefreshCerts()
	// Clean cleans certificates state
	CleanCerts()
}

func New

func New(envParam Env) (Certificates, error)

type Env

type Env struct {
	MainDir     string
	FrontendDir string
	BackendDir  string
	CaDir       string
}

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