Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CertIsValid ¶
func CertIsValid(cert x509.Certificate, expirationSafetyMargin time.Duration) bool
Types ¶
type CA ¶
type CA struct { // PrivateKey is the CA private key PrivateKey *rsa.PrivateKey // Cert is the certificate used to issue new certificates Cert *x509.Certificate }
CA is a simple certificate authority
func BuildCAFromSecret ¶
BuildCAFromSecret parses the given secret into a CA. It returns nil if the secrets could not be parsed into a CA.
func CreateSelfSignedCA ¶
func (*CA) PopulateSecret ¶
type WebhookCertificates ¶
WebhookCertificates holds the artifacts used by the webhook server and the webhook configuration.
Click to show internal directories.
Click to hide internal directories.