Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddChartToLocalRepo ¶
AddChartToLocalRepo saves a chart in the given path and then reindexes the index file
func DownloadIndexFile ¶
DownloadIndexFile uses
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
func (*ChartRepository) Index ¶
func (r *ChartRepository) Index() error
Index generates an index for the chart repository and writes an index.yaml file
type IndexFile ¶
IndexFile represents the index file in a chart repository
func LoadIndexFile ¶
LoadIndexFile takes a file at the given path and returns an IndexFile object
func (*IndexFile) UnmarshalYAML ¶
UnmarshalYAML unmarshals the index file
type RepoFile ¶
RepoFile represents the repositories.yaml file in $HELM_HOME
func LoadRepositoriesFile ¶
LoadRepositoriesFile takes a file at the given path and returns a RepoFile object
func (*RepoFile) UnmarshalYAML ¶
UnmarshalYAML unmarshals the repo file