helm

package
v2.2.0-alpha4+incompat... Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: Apache-2.0 Imports: 23 Imported by: 253

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFiles

func FetchFiles(version *ChartVersion, urls []string, username, password string) ([]v3.File, error)

func FetchTgz

func FetchTgz(url, username, password string) ([]v3.File, error)

FetchTgz fetchs artifacts from helm catalog

func Icon

func Icon(versions ChartVersions) (string, string, error)

func LoadFile

func LoadFile(version *ChartVersion, path string) (*v3.File, error)

func SaveIndex

func SaveIndex(index *RepoIndex, repoPath string) error

Types

type ChartMetadata

type ChartMetadata struct {
	Name        string   `json:"name,omitempty" yaml:"name,omitempty"`
	Sources     []string `json:"sources,omitempty" yaml:"sources,omitempty"`
	Version     string   `json:"version,omitempty" yaml:"version,omitempty"`
	KubeVersion string   `json:"kubeVersion,omitempty" yaml:"kubeVersion,omitempty"`
	Description string   `json:"description,omitempty" yaml:"description,omitempty"`
	Keywords    []string `json:"keywords,omitempty" yaml:"keywords,omitempty"`
	Icon        string   `json:"icon,omitempty" yaml:"icon,omitempty"`
}

type ChartVersion

type ChartVersion struct {
	ChartMetadata `yaml:",inline"`
	Dir           string   `json:"-" yaml:"-"`
	URLs          []string `json:"urls" yaml:"urls"`
	Digest        string   `json:"digest,omitempty" yaml:"digest,omitempty"`
}

type ChartVersions

type ChartVersions []*ChartVersion

type IndexFile

type IndexFile struct {
	Entries map[string]ChartVersions `json:"entries" yaml:"entries"`
}

type RepoIndex

type RepoIndex struct {
	IndexFile *IndexFile `json:"indexFile" yaml:"indexFile"`
	Hash      string     `json:"hash" yaml:"hash"`
}

func DownloadIndex

func DownloadIndex(indexURL, username, password string) (*RepoIndex, error)

DownloadIndex fetchs helm catalog index

func LoadIndex

func LoadIndex(repoPath string) (*RepoIndex, error)

Jump to

Keyboard shortcuts

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