Documentation ¶
Overview ¶
Package certmanager implements the certificate.Manager interface for cert-manager.io as the certificate provider.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCertificateFromPEM ¶
func NewRootCertificateFromPEM(pemCert pem.Certificate) (*certificate.Certificate, error)
NewRootCertificateFromPEM is a helper returning a *certificate.Certificate from the PEM components given.
Types ¶
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
CertManager implements certificate.Manager
func New ¶ added in v1.1.0
func New( ca *certificate.Certificate, client cmversionedclient.Interface, namespace string, issuerRef cmmeta.ObjectReference, keySize int) (*CertManager, error)
New will construct a new certificate client using Jetstack's cert-manager,
func (*CertManager) IssueCertificate ¶
func (cm *CertManager) IssueCertificate(cn certificate.CommonName, validityPeriod time.Duration) (*certificate.Certificate, error)
IssueCertificate will request a new signed certificate from the configured cert-manager issuer.
Click to show internal directories.
Click to hide internal directories.