chart

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchChart

func FetchChart(netClient *HTTPClient, chartURL, authHeader string, load LoadChart) (*chart.Chart, error)

FetchChart returns the Chart content given an URL and the auth header if needed

func FetchRepoIndex

func FetchRepoIndex(netClient *HTTPClient, repoURL string, authHeader string) (*repo.IndexFile, error)

FetchRepoIndex returns a Helm repository

func FindChartInRepoIndex

func FindChartInRepoIndex(repoIndex *repo.IndexFile, repoURL, chartName, chartVersion string) (string, error)

FindChartInRepoIndex returns the URL of a chart given a Helm repository and its name and version

Types

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPClient Interface to perform HTTP requests

type LoadChart

type LoadChart func(in io.Reader) (*chart.Chart, error)

LoadChart should return a Chart struct from an IOReader

Jump to

Keyboard shortcuts

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