func RequestCertificate(client clientset.Interface, csrData []byte, name, signerName string, requestedDuration *time.Duration, usages []certificatesv1.KeyUsage, privateKey interface{ … }
func DurationToExpirationSeconds(duration time.Duration) *int32 { … }
func ExpirationSecondsToDuration(expirationSeconds int32) time.Duration { … }
func get(client clientset.Interface, name string) (*certificatesv1.CertificateSigningRequest, error) { … }
func create(client clientset.Interface, csr *certificatesv1.CertificateSigningRequest) (reqName string, reqUID types.UID, err error) { … }
func WaitForCertificate(ctx context.Context, client clientset.Interface, reqName string, reqUID types.UID) (certData []byte, err error) { … }
func ensureCompatible(new, orig *certificatesv1.CertificateSigningRequest, privateKey interface{ … }
func formatError(format string, err error) error { … }
func parseCSR(pemData []byte) (*x509.CertificateRequest, error) { … }