helm

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFiles

func FetchFiles(urls []string) ([]model.File, error)

func LoadFile

func LoadFile(path string) (*model.File, error)

func SaveIndex

func SaveIndex(index *HelmRepoIndex, repoPath string) error

Types

type ChartMetadata

type ChartMetadata struct {
	Name        string        `json:"name,omitempty" yaml:"name,omitempty"`
	Home        string        `json:"home,omitempty" yaml:"home,omitempty"`
	Sources     []string      `json:"sources,omitempty" yaml:"sources,omitempty"`
	Version     string        `json:"version,omitempty" yaml:"version,omitempty"`
	Description string        `json:"description,omitempty" yaml:"description,omitempty"`
	Keywords    []string      `json:"keywords,omitempty" yaml:"keywords,omitempty"`
	Maintainers []*Maintainer `json:"maintainers,omitempty" yaml:"maintainers,omitempty"`
	Engine      string        `json:"engine,omitempty" yaml:"engine,omitempty"`
	Icon        string        `json:"icon,omitempty" yaml:"icon,omitempty"`
	ApiVersion  string        `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
	Condition   string        `json:"condition,omitempty" yaml:"condition,omitempty"`
	Tags        string        `json:"tags,omitempty" yaml:"tags,omitempty"`
	AppVersion  string        `json:"appVersion,omitempty" yaml:"appVersion,omitempty"`
	Deprecated  bool          `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
}

func LoadMetadata

func LoadMetadata(path string) (*ChartMetadata, error)

type ChartVersion

type ChartVersion struct {
	ChartMetadata `yaml:",inline"`
	URLs          []string  `json:"urls" yaml:"urls"`
	Created       time.Time `json:"created,omitempty" yaml:"created,omitempty"`
	Removed       bool      `json:"removed,omitempty" yaml:"removed,omitempty"`
	Digest        string    `json:"digest,omitempty" yaml:"digest,omitempty"`
}

type ChartVersions

type ChartVersions []*ChartVersion

type HelmRepoIndex

type HelmRepoIndex struct {
	URL       string     `json:"url" yaml:"url"`
	CertFile  string     `json:"certFile,omitempty" yaml:"certFile,omitempty"`
	KeyFile   string     `json:"keyFile,omitempty" yaml:"keyFile,omitempty"`
	CAFile    string     `json:"caFile,omitempty" yaml:"caFile,omitempty"`
	IndexFile *IndexFile `json:"indexFile" yaml:"indexFile"`
	Hash      string     `json:"hash" yaml:"hash"`
}

func DownloadIndex

func DownloadIndex(indexURL string) (*HelmRepoIndex, error)

func LoadIndex

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

type IndexFile

type IndexFile struct {
	APIVersion string                   `json:"apiVersion" yaml:"apiVersion"`
	Generated  time.Time                `json:"generated" yaml:"generated"`
	Entries    map[string]ChartVersions `json:"entries" yaml:"entries"`
	PublicKeys []string                 `json:"publicKeys,omitempty" yaml:"publicKeys,omitempty"`
}

type Maintainer

type Maintainer struct {
	Name  string `json:"name,omitempty" yaml:"name,omitempty"`
	Email string `json:"email,omitempty" yaml:"email,omitempty"`
}

Jump to

Keyboard shortcuts

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