Documentation ¶
Index ¶
- func AnnotationsForCertificate(certificate *x509.Certificate) (map[string]string, error)
- func Apply(ctx context.Context, cl cmclient.Interface, fieldManager string, ...) error
- 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 AnnotationsForCertificate ¶ added in v1.13.0
func AnnotationsForCertificate(certificate *x509.Certificate) (map[string]string, error)
AnnotationsForCertificate returns a map which is set on all Certificate Secret's Annotations when issued. These annotations contain information about the Certificate. If the X.509 certificate is nil, an empty map will be returned.
func Apply ¶
func Apply(ctx context.Context, cl cmclient.Interface, fieldManager string, crt *cmapi.Certificate) error
Apply will make a Apply API call with the given client to the certificates resource endpoint. All data in the given Certificate's status field is dropped. The given fieldManager is will be used as the FieldManager in the Apply call. Always sets Force Apply to true.
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.