certificate

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertReconciler

type CertReconciler struct {
	client.Client
	CertReconcilerOpts
}

func NewCertReconciler

func NewCertReconciler(client client.Client, caSecretKey types.NamespacedName, caCommonName string,
	certSecretKey types.NamespacedName, certCommonName string, certDNSNames []string,
	reconcilerOpts ...CertReconcilerOpt) *CertReconciler

func (*CertReconciler) Reconcile

func (r *CertReconciler) Reconcile(ctx context.Context) (*ReconcileResult, error)

type CertReconcilerOpt

type CertReconcilerOpt func(opts *CertReconcilerOpts)

func WithCAValidity

func WithCAValidity(validity time.Duration) CertReconcilerOpt

func WithCertValidity

func WithCertValidity(validity time.Duration) CertReconcilerOpt

func WithLookaheadValidity

func WithLookaheadValidity(validity time.Duration) CertReconcilerOpt

type CertReconcilerOpts

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

type ReconcileResult

type ReconcileResult struct {
	CAKeyPair     *pki.KeyPair
	CertKeyPair   *pki.KeyPair
	RefreshedCA   bool
	RefreshedCert bool
}

Jump to

Keyboard shortcuts

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