util

package
v0.0.0-...-edd4e59 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GeneratePrivateKey

func GeneratePrivateKey(assetsDir, fileName string) ([]byte, error)

GeneratePrivateKey returns a PEM encoded Private Key byte stream of an RSA 2048 bit size key and writes it to file in the `assetsDir`.

func GetCertApprovalCondition

func GetCertApprovalCondition(status *capi.CertificateSigningRequestStatus) (approved bool, denied bool)

GetCertApprovalCondition returns both the approved status and denied status of the certificate request

func IsCertificateRequestApproved

func IsCertificateRequestApproved(csr *capi.CertificateSigningRequest) bool

IsCertificateRequestApproved returns true if a certificate request has the "Approved" condition and no "Denied" conditions; false otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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