certificates

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootKey     = "ca.key"
	RootCert    = "ca.crt"
	RootCertOld = "ca.crt.old"
	ServerKey   = "tls.key"
	ServerCert  = "tls.crt"
)
View Source
const (
	SuccessDuration = 3 * time.Hour
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, ns string) error

func AddBootstrap

func AddBootstrap(mgr manager.Manager, ns string, cancelMgr context.CancelFunc) error

Types

type Certs

type Certs struct {
	Domain  string
	SrcData map[string][]byte
	Data    map[string][]byte

	Now time.Time
	// contains filtered or unexported fields
}

Certs handles creation and renewal of CA and SSL/TLS server certificates.

func (*Certs) ValidateCerts

func (cs *Certs) ValidateCerts() error

ValidateCerts checks for certificates and keys on cs.SrcData and renews them if needed. The existing (or new) certificates will be stored on cs.Data.

type WebhookCertificateController added in v0.5.0

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

func (*WebhookCertificateController) Reconcile added in v0.5.0

func (controller *WebhookCertificateController) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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