Help us shape the future of Go! Take the 2026 Go Developer Survey

loader

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFileNotFound is an error type used to signal 404 HTTP status code responses.
	ErrFileNotFound = errors.New("file not found")

	// ErrDigestMismatch is an error type used to signal that the downloaded
	// artifact does not match the provided digest.
	ErrDigestMismatch = fluxfetch.ErrDigestMismatch
)

Functions

func SecureLoadChartFromURL

func SecureLoadChartFromURL(ctx context.Context, URL, digest string, retries int, timeout time.Duration, tlsConfig *tls.Config) (*chart.Chart, error)

SecureLoadChartFromURL attempts to download a Helm chart from the given URL, verifies it against the given digest and loads it. The error may be of type ErrFileNotFound if the artifact does not exist, or ErrDigestMismatch if the downloaded artifact does not match the given digest.

Types

This section is empty.

Jump to

Keyboard shortcuts

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