loader

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 12 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")
	// ErrIntegrity signals a chart loader failed to verify the integrity of
	// a chart, for example due to a digest mismatch.
	ErrIntegrity = errors.New("integrity failure")
)

Functions

func SecureLoadChartFromURL

func SecureLoadChartFromURL(client *retryablehttp.Client, URL, digest string) (*chart.Chart, error)

SecureLoadChartFromURL attempts to download a Helm chart from the given URL using the provided client. The retrieved data is verified against the given digest before loading the chart. It returns the loaded chart.Chart, or an error. The error may be of type ErrIntegrity if the integrity check fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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