certmanagerissuer

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateName

func CertificateName(contextID, cert, clusterProvider, cluster string) string

CertificateName retun the Certificate name

func CertificateRequestName

func CertificateRequestName(contextID, cert, clusterProvider, cluster string) string

CertificateRequestName retun the CertificateRequest name

func ClusterIssuerName

func ClusterIssuerName(contextID, cert, clusterProvider, cluster string) string

ClusterIssuerName retun the ClusterIssuer name

func CreateCertificate

func CreateCertificate(caCert module.CaCert, name, secret string, secretTemplate cmv1.CertificateSecretTemplate) (*cmv1.Certificate, error)

CreateCertificate retun the cert-manager Certificate object

func CreateCertificateRequest

func CreateCertificateRequest(caCert module.CaCert, name string, request []byte) (*cmv1.CertificateRequest, error)

CreateCertificateRequest retun the cert-manager CertificateRequest object

func CreateClusterIssuer

func CreateClusterIssuer(name, secret string) *cmv1.ClusterIssuer

CreateClusterIssuer retun the cert-manager ClusterIssuer object

func CreateSecret

func CreateSecret(name, namespace string, data map[string][]byte) *v1.Secret

CreateSecret retun the Secret object

func ResourceName

func ResourceName(name string) string

ResourceName returns the CertificateRequest resource name, used by rsync

func RetrieveCertificateRequests

func RetrieveCertificateRequests(ctx context.Context, contextID string) ([]cmv1.CertificateRequest, error)

RetrieveCertificateRequests retrieves the certificaterequests created by the caCert enrollment

func SecretName

func SecretName(contextID, cert, clusterProvider, cluster string) string

SecretName retun the Secret name

func ValidateCertificate

func ValidateCertificate(cert cmv1.Certificate) error

ValidateCertificate validate the certificate status

func ValidateCertificateRequest

func ValidateCertificateRequest(cr cmv1.CertificateRequest) error

ValidateCertificateRequest validate the certificaterequest status

Types

type Resources

type Resources struct {
	Certificates        []cmv1.Certificate
	CertificateRequests []cmv1.CertificateRequest
	Secrets             []v1.Secret
}

func RetrieveCertManagerResources

func RetrieveCertManagerResources(ctx context.Context, contextID string) (Resources, error)

RetrieveCertManagerResources retrieves the cert-manager resources created by the caCert enrollment

Jump to

Keyboard shortcuts

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