Commit 28d46246 authored by Michelle Noorali's avatar Michelle Noorali

ref(*): fix comment style

parent ee61c331
......@@ -267,6 +267,7 @@ func Load(archive string) (*Chart, error) {
return LoadDataFromReader(raw)
}
// LoadDataFromReader loads a chart a reader
func LoadDataFromReader(r io.Reader) (*Chart, error) {
unzipped, err := gzip.NewReader(r)
if err != nil {
......@@ -397,7 +398,7 @@ func (c *Chart) loadDirectory(dir string) ([]*ChartMember, error) {
return members, nil
}
// path is from the root of the chart.
// LoadMember loads a chart member from a given path where path is the root of the chart.
func (c *Chart) LoadMember(path string) (*ChartMember, error) {
filename := filepath.Join(c.loader.dir(), path)
return c.loadMember(filename)
......
......@@ -62,9 +62,9 @@ type RepoType string
type RepoFormat string
const (
// PathRepo identfies a repository where charts are organized hierarchically.
// PathRepoFormat identfies a repository where charts are organized hierarchically.
PathRepoFormat = RepoFormat("path")
// FlatRepo identifies a repository where all charts appear at the top level.
// FlatRepoFormat identifies a repository where all charts appear at the top level.
FlatRepoFormat = RepoFormat("flat")
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment