loader

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) *types.PorterTemplateSimple

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

func LoadChartPublic(repoURL, chartName, chartVersion string) (*chart.Chart, error)

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

func LoadRepoIndexPublic(repoURL string) (*repo.IndexFile, error)

LoadRepoIndexPublic loads an index file from a remote public Helm repo

func RepoIndexToPorterChartList

func RepoIndexToPorterChartList(index *repo.IndexFile) types.ListTemplatesResponse

RepoIndexToPorterChartList converts an index file to a list of porter charts

Types

type BasicAuthClient

type BasicAuthClient struct {
	Username string
	Password string
}

BasicAuthClient is just a username/password to set on requests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL