Include the cache option

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
pull/12167/head
Yarden Shoham 7 months ago
parent d9c9fd8796
commit 597e2eeee8

@ -249,6 +249,13 @@ func WithInsecureSkipTLSverify(insecureSkipTLSverify bool) FindChartInRepoURLOpt
}
}
// WithIndexFileCache specifies the cache to use for index files
func WithIndexFileCache(indexFileCache *cache.Cache[*IndexFile]) FindChartInRepoURLOption {
return func(options *findChartInRepoURLOptions) {
options.IndexFileCache = indexFileCache
}
}
// FindChartInRepoURL finds chart in chart repository pointed by repoURL
// without adding repo to repositories
func FindChartInRepoURL(repoURL string, chartName string, getters getter.Providers, options ...FindChartInRepoURLOption) (string, error) {

Loading…
Cancel
Save