getter

package
v0.0.0-...-847bb9c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 6 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(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(secret corev1.Secret, repositoryUrl string) (*tls.Config, error)

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.

Jump to

Keyboard shortcuts

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