certificates

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 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

func OutputFormatCombinedPEM(privateKey, certificate []byte) []byte

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

func OutputFormatDER(privateKey []byte) []byte

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.

Directories

Path Synopsis
Package policies provides functionality to evaluate Certificate's state
Package policies provides functionality to evaluate Certificate's state

Jump to

Keyboard shortcuts

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