certificatemanagement

package
v0.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequestFailed  = errors.New("requesting certificate failed")
	ErrRequestInvalid = errors.New("certificate request invalid")
	ErrRequestPending = errors.New("certificate request pending")
	ErrRequestDenied  = errors.New("certificate request denied")
)

Functions

This section is empty.

Types

type CertificateManager

type CertificateManager interface {
	// RequestCertificate creates a new CertificateRequest with the given
	// base64 encoded string of a PEM encoded certificate request.
	RequestCertificate(ctx context.Context, requestID uuid.UUID, csr []byte) error
	// GetCertificate returns a byte slice containing a PEM encoded signed certificate
	// resulting from a certificate signing request identified by the requestID
	GetCertificate(ctx context.Context, requestID uuid.UUID) (ca []byte, cert []byte, err error)
}

CertificateManager is an interface to read/write certificate requests and certificates

func NewCertManagerClient

func NewCertManagerClient(k8sClient ctrlclient.Client, namespace, issuerKind, issuer string, duration time.Duration) CertificateManager

NewCertManagerClient creates a cert-manager.io specific implementation of the certificatemanagement.CertificateManager interface

Jump to

Keyboard shortcuts

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