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, indexFilePath 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.Metadata `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
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