Documentation
¶
Index ¶
- func AnnotationsForCertificateSecret(crt *cmapi.Certificate, certificate *x509.Certificate) map[string]string
- func ApplyStatus(ctx context.Context, cl cmclient.Interface, fieldManager string, ...) error
- func OutputFormatCombinedPEM(privateKey, certificate []byte) []byte
- func OutputFormatDER(privateKey []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotationsForCertificateSecret ¶
func AnnotationsForCertificateSecret(crt *cmapi.Certificate, certificate *x509.Certificate) map[string]string
AnnotationsForCertificateSecret returns a map which is set on all Certificate Secret's Annotations when issued. These annotations contain information about the Issuer and Certificate. If the X.509 certificate is not-nil, additional annotations will be added relating to its Common Name and Subject Alternative Names.
func ApplyStatus ¶
func ApplyStatus(ctx context.Context, cl cmclient.Interface, fieldManager string, crt *cmapi.Certificate) error
ApplyStatus will make a Patch API call with the given client to the certificates status sub-resource endpoint. All data in the given Certificate object is dropped; expect for the name, namespace, and status object. The given fieldManager is will be used as the FieldManager in the Patch call. Always sets Force Patch to true.
func OutputFormatCombinedPEM ¶
OutputFormatCombinedPEM returns the byte slice of the PEM encoded private key and signed certificate chain, concatenated. To be used for Certificate's Additional Output Format Combined PEM.
func OutputFormatDER ¶
OutputFormatDER returns the byte slice of the private key in DER format. To be used for Certificate's Additional Output Format DER.
Types ¶
This section is empty.