getter

package
v0.21.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthFromSecret

func BasicAuthFromSecret(secret corev1.Secret) (getter.Option, error)

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

func ClientOptionsFromSecret(dir string, secret corev1.Secret) ([]getter.Option, error)

ClientOptionsFromSecret constructs a getter.Option slice for the given secret. It returns the slice, or an error.

func TLSClientConfigFromSecret

func TLSClientConfigFromSecret(dir string, secret corev1.Secret) (getter.Option, error)

TLSClientConfigFromSecret attempts to construct a TLS client config getter.Option for the given v1.Secret, placing the required TLS config related files in the given directory. It returns the getter.Option, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL