secret

package
v0.0.0-...-478d272 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientCert = "certFile"
	ClientKey  = "keyFile"
	CACert     = "caFile"
)

These are intended to match the keys used in e.g., https://github.com/fluxcd/flux2/blob/main/cmd/flux/create_secret_helm.go, for consistency (and perhaps this will have its own flux create secret subcommand at some point).

Variables

This section is empty.

Functions

func AuthFromSecret

func AuthFromSecret(secret corev1.Secret, ref name.Reference) (authn.Authenticator, error)

authFromSecret creates an Authenticator that can be given to the `remote` funcs, from a Kubernetes secret. If the secret doesn't have the right format or data, it returns an error.

func Fuzz_imagerepository_getURLHost

func Fuzz_imagerepository_getURLHost(f *testing.F)

func TransportFromSecret

func TransportFromSecret(certSecret *corev1.Secret) (*http.Transport, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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