Documentation ¶
Index ¶
- func CreateOrUpdateCertToSecret(client clientset.Interface, caCert *x509.Certificate, cert *x509.Certificate, ...) error
- func NewServerCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, commonName string, ...) (*x509.Certificate, crypto.Signer, error)
- func UniqueStringSlice(slice []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateCertToSecret ¶
func CreateOrUpdateCertToSecret( client clientset.Interface, caCert *x509.Certificate, cert *x509.Certificate, key crypto.Signer, secretName string, ) error
CreateOrUpdateCertToSecret creates or update certificate to secret resource
func NewServerCertAndKey ¶
func NewServerCertAndKey( caCert *x509.Certificate, caKey crypto.Signer, commonName string, certSANs []string, ) (*x509.Certificate, crypto.Signer, error)
NewServerCertAndKey creates new certificate and key by passing the certificate authority certificate and key and server common name and server SANs
func UniqueStringSlice ¶ added in v1.2.0
UniqueStringSlice accepts a slice and will return an array without any repeated elements. The ordering will be preserved as seen on the first slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.