Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CA ¶
type CA struct {
K8sConfigMapName string
K8sConfigMapNamespace string
CACertBytes []byte
CAKeyBytes []byte
CACert *x509.Certificate
CAKey crypto.Signer
}
CA contains the data and metadata of the certificate authority
func (*CA) Generate ¶
Generate the root certificate and keyfile. Populates c.CACertBytes and c.CAKeyBytes
func (*CA) LoadFromFile ¶
LoadFromFile populates c.CACertBytes and c.CAKeyBytes by reading them from file.
func (*CA) StoreAsConfigMap ¶
StoreAsConfigMap creates or updates the CA certificate in a K8s configmap
type Cert ¶
type Cert struct {
CommonName string
ValidityDuration time.Duration
Usage []string
K8sSecretName string
K8sSecretNamespace string
CertBytes []byte
KeyBytes []byte
}
CA contains the data and metadata of the certificate and keyfile
func NewCert ¶
func NewCert( commonName string, validityDuration time.Duration, usage []string, k8sSecretName string, k8sSecretNamespace string, ) *Cert
NewCert creates a new certificate blueprint
func (*Cert) StoreAsSecret ¶
StoreAsSecret creates or updates the certificate and keyfile in a K8s secret
Click to show internal directories.
Click to hide internal directories.