Download the helm chart repo to a local folder.
opts
Object Options to use.opts.srcUrl
String The Uri of the chart package which should be downloaded to local disk.opts.savePath
String The path to download the package to. Defaults to a newly created directory inos.temp()
.opts.saveToFile
String The name of the file the package should be saved as. Defaults toindex.yaml
'.
Downloading with default values
const opts = {
srcUrl: 'https://chart-repo.com/charts/chart_v1.0.0.tgz'
};
// returns a DownloadRepoResult object
let downloadRepoResult = await downloadChartRepo(opts);
Returns Promise<DownloadRepoResult, Error>
Get the chart information of a chart-repo's index.yaml file.
opts
Object The options forgetChartVersions()
function.opts.src
String The source to load from. This can be a local file or a Url.
Returns any ChartRepoResult
Returns the manifest for a given chart.
opts
Object Options forgetManifestFromChart()
.opts.loadFromDir
String The (local) directory from which the chart should be loaded from.
const opts = {
loadFromDir: './.temp/charts/chart_v1'
}
let manifest = await getManifestFromChart();
Returns ChartManifest , to be resolved on success and rejected on failure.
Returns an array of all images from a given chart manifest.
chartManifest
ChartManifest
Returns Array<String> Returns an array of images found in the given manifest.
Type: Object
meta
Object Some meta informationresult
Object The result (content of the index.yaml file).result.apiVersion
string The helm's chartapiVersion
property.
Type: Object
Type: Object
srcUrl
String The passed insrcUrl
property.savePath
String The passed insavePath
property.saveToFile
String The passed insaveToFile
property.fullPath
String The full path of the downloaded file.name
String The filename.ext
String The filename's extension.
Type: object
path
string The file path.name
string The file basename.type
string Eitherfolder
orfile
.isDir
boolean Whether the current item is a directory or not.extname
string The file's extension.object
object The object in case we are dealing with a .yaml file.children
array<object> The children for the given item.
Type: Object