Documentation ¶
Overview ¶
Package tls contains helpers to convert Kubernetes secrets to TLS certificates.
Index ¶
Constants ¶
View Source
const ( ClientCertIdentifier = "certFile" ClientKeyIdentifier = "keyFile" CACertIdentifier = "caFile" )
Variables ¶
This section is empty.
Functions ¶
func ConfigFromSecret ¶
ConfigFromSecret returns a TLS config created from the content of the secret. An error is returned if the secret does not contain a ClientCertIdentifier and ClientKeyIdentifier, or a CACertIdentifier.
func TransportFromSecret ¶
TransportFromSecret returns a HTTP transport with a TLS config created from the content of the secret. An error is returned if the secret does not contain a ClientCertIdentifier and ClientKeyIdentifier, or a CACertIdentifier.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.