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.
Click to show internal directories.
Click to hide internal directories.