Documentation ¶
Index ¶
- func DurationToExpirationSeconds(duration time.Duration) *int32
- func ExpirationSecondsToDuration(expirationSeconds int32) time.Duration
- func RequestCertificate(client clientset.Interface, csrData []byte, name, signerName string, ...) (reqName string, reqUID types.UID, err error)
- func WaitForCertificate(ctx context.Context, client clientset.Interface, reqName string, ...) (certData []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DurationToExpirationSeconds ¶ added in v0.22.0
func ExpirationSecondsToDuration ¶ added in v0.22.0
func RequestCertificate ¶
func RequestCertificate(client clientset.Interface, csrData []byte, name, signerName string, requestedDuration *time.Duration, usages []certificatesv1.KeyUsage, privateKey interface{}) (reqName string, reqUID types.UID, err error)
RequestCertificate will either use an existing (if this process has run before but not to completion) or create a certificate signing request using the PEM encoded CSR and send it to API server. An optional requestedDuration may be passed to set the spec.expirationSeconds field on the CSR to control the lifetime of the issued certificate. This is not guaranteed as the signer may choose to ignore the request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.