Documentation ¶
Index ¶
- func CertDataToSecret(name string, certData CertificateData, annotations map[string]string) corev1.Secret
- func GenerateCASecret(name string, subject string) corev1.Secret
- func GenerateSecret(name string, subject string, hosts string, ca *corev1.Secret) corev1.Secret
- func GenerateSimpleSecret(name string, ca *corev1.Secret) corev1.Secret
- func GetSecretContent(secretFile string) (map[string][]byte, error)
- func GetTlsConfig(verify bool, cert, key, ca string) (*tls.Config, error)
- func PutCertificateData(name string, secretFile string, certData CertificateData, ...)
- type CertificateAuthority
- type CertificateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertDataToSecret ¶
func GenerateSecret ¶
func PutCertificateData ¶
func PutCertificateData(name string, secretFile string, certData CertificateData, annotations map[string]string)
Types ¶
type CertificateAuthority ¶
type CertificateAuthority struct { Certificate *x509.Certificate Key interface{} CrtData []byte }
type CertificateData ¶
func GenerateCACertificateData ¶
func GenerateCACertificateData(name string, subject string) CertificateData
func GenerateCertificateData ¶
func GenerateCertificateData(name string, subject string, hosts string, caData CertificateData) CertificateData
func SecretToCertData ¶
func SecretToCertData(secret corev1.Secret) CertificateData
Click to show internal directories.
Click to hide internal directories.