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 NewRetryableHTTPClient ¶ added in v0.37.1
NewRetryableHTTPClient returns a new retrying HTTP client for loading artifacts. The client will retry up to the given number of times before giving up. The context is used to log errors.
func SecureLoadChartFromURL ¶
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.
Click to show internal directories.
Click to hide internal directories.