repo

package
v2.0.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChartToLocalRepo

func AddChartToLocalRepo(ch *chart.Chart, path string) error

AddChartToLocalRepo saves a chart in the given path and then reindexes the index file

func DownloadIndexFile

func DownloadIndexFile(repoName, url, indexFileName string) error

DownloadIndexFile uses

func Reindex

func Reindex(ch *chart.Chart, path string) error

Reindex adds an entry to the index file at the given path

func StartLocalRepo

func StartLocalRepo(path string)

StartLocalRepo starts a web server and serves files from the given path

Types

type ChartRef

type ChartRef struct {
	Name      string          `yaml:"name"`
	URL       string          `yaml:"url"`
	Created   string          `yaml:"created,omitempty"`
	Removed   bool            `yaml:"removed,omitempty"`
	Checksum  string          `yaml:"checksum,omitempty"`
	Chartfile chart.Chartfile `yaml:"chartfile"`
}

ChartRef represents a chart entry in the IndexFile

type ChartRepository

type ChartRepository struct {
	RootPath   string
	URL        string // URL of repository
	ChartPaths []string
	IndexFile  *IndexFile
}

ChartRepository represents a chart repository

func LoadChartRepository

func LoadChartRepository(dir, url string) (*ChartRepository, error)

LoadChartRepository takes in a path to a local chart repository

which contains packaged charts and an index.yaml file

This function evaluates the contents of the directory and returns a ChartRepository

func (*ChartRepository) Index

func (r *ChartRepository) Index() error

type IndexFile

type IndexFile struct {
	Entries map[string]*ChartRef
}

IndexFile represents the index file in a chart repository

func LoadIndexFile

func LoadIndexFile(path string) (*IndexFile, error)

LoadIndexFile takes a file at the given path and returns an IndexFile object

func (*IndexFile) UnmarshalYAML

func (i *IndexFile) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals the index file

type RepoFile

type RepoFile struct {
	Repositories map[string]string
}

RepoFile represents the repositories.yaml file in $HELM_HOME

func LoadRepositoriesFile

func LoadRepositoriesFile(path string) (*RepoFile, error)

LoadRepositoriesFile takes a file at the given path and returns a RepoFile object

func (*RepoFile) UnmarshalYAML

func (rf *RepoFile) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals the repo file

Jump to

Keyboard shortcuts

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