Documentation ¶
Index ¶
- func AnnotateConnectionToken(secret *corev1.Secret, role string, host string, port string)
- func CertDataToSecret(name string, certData CertificateData, annotations map[string]string) corev1.Secret
- func DecodeCertificate(data []byte) (*x509.Certificate, error)
- func GenerateCASecret(name string, subject string) corev1.Secret
- func GenerateSecret(name string, subject string, hosts string, ca *corev1.Secret) corev1.Secret
- func GenerateSecretFile(secretFile string, secret *corev1.Secret, localOnly bool) error
- func GenerateSecretWithExpiration(name string, subject string, hosts string, expiration time.Duration, ...) corev1.Secret
- func GenerateSimpleSecret(name string, ca *corev1.Secret) corev1.Secret
- func GetTlsCrtHostnames(tlscrtData []byte) (subject string, hostnames []string, err error)
- type CertificateAuthority
- type CertificateData
- type TlsConfigRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnnotateConnectionToken ¶
func CertDataToSecret ¶
func DecodeCertificate ¶
func DecodeCertificate(data []byte) (*x509.Certificate, error)
func GenerateSecret ¶
func GenerateSecretFile ¶
Types ¶
type CertificateAuthority ¶
type CertificateAuthority struct { Certificate *x509.Certificate Key interface{} CrtData []byte }
type CertificateData ¶
func SecretToCertData ¶
func SecretToCertData(secret corev1.Secret) CertificateData
type TlsConfigRetriever ¶
func GetTlsConfigRetriever ¶
func GetTlsConfigRetriever(verify bool, cert, key, ca string) *TlsConfigRetriever
func (*TlsConfigRetriever) GetTlsConfig ¶
func (paths *TlsConfigRetriever) GetTlsConfig() (*tls.Config, error)
Click to show internal directories.
Click to hide internal directories.