Documentation ¶
Index ¶
- func FindPorterChartInIndexList(index *repo.IndexFile, name string) *models.PorterChartList
- func LoadChart(client *BasicAuthClient, repoURL, chartName, chartVersion string) (*chart.Chart, error)
- func LoadChartPublic(repoURL, chartName, chartVersion string) (*chart.Chart, error)
- func LoadRepoIndex(client *BasicAuthClient, repoURL string) (*repo.IndexFile, error)
- func LoadRepoIndexPublic(repoURL string) (*repo.IndexFile, error)
- func RepoIndexToPorterChartList(index *repo.IndexFile) []*models.PorterChartList
- type BasicAuthClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindPorterChartInIndexList ¶ added in v0.3.0
func FindPorterChartInIndexList(index *repo.IndexFile, name string) *models.PorterChartList
FindPorterChartInIndexList finds a chart by name given an index file and returns it
func LoadChart ¶
func LoadChart(client *BasicAuthClient, repoURL, chartName, chartVersion string) (*chart.Chart, error)
LoadChart uses an http request to fetch a chart from a remote Helm repo
func LoadChartPublic ¶
LoadChartPublic returns a Helm3 (v2) chart from a remote public repo. If chartVersion is an empty string, the most stable latest version is found.
TODO: this is an expensive operation, so after retrieving the digest from the repo index, this should check the digest in the cache
func LoadRepoIndex ¶
func LoadRepoIndex(client *BasicAuthClient, repoURL string) (*repo.IndexFile, error)
LoadRepoIndex uses an http request to get the index file and loads it
func LoadRepoIndexPublic ¶
LoadRepoIndexPublic loads an index file from a remote public Helm repo
func RepoIndexToPorterChartList ¶
func RepoIndexToPorterChartList(index *repo.IndexFile) []*models.PorterChartList
RepoIndexToPorterChartList converts an index file to a list of porter charts
Types ¶
type BasicAuthClient ¶
BasicAuthClient is just a username/password to set on requests