Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthFromSecret ¶
BasicAuthFromSecret attempts to construct a basic auth getter.Option for the given v1.Secret and returns the result.
Secrets with no username AND password are ignored, if only one is defined it returns an error.
func ClientOptionsFromSecret ¶
ClientOptionsFromSecret constructs a getter.Option slice for the given secret. It returns the slice, or an error.
func TLSClientConfigFromSecret ¶
TLSClientConfigFromSecret attempts to construct a TLS client config for the given v1.Secret. It returns the TLS client config or an error.
Secrets with no certFile, keyFile, AND caFile are ignored, if only a certBytes OR keyBytes is defined it returns an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.