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) { ...@@ -267,6 +267,7 @@ func Load(archive string) (*Chart, error) {
return LoadDataFromReader(raw) return LoadDataFromReader(raw)
} }
// LoadDataFromReader loads a chart a reader
func LoadDataFromReader(r io.Reader) (*Chart, error) { func LoadDataFromReader(r io.Reader) (*Chart, error) {
unzipped, err := gzip.NewReader(r) unzipped, err := gzip.NewReader(r)
if err != nil { if err != nil {
...@@ -397,7 +398,7 @@ func (c *Chart) loadDirectory(dir string) ([]*ChartMember, error) { ...@@ -397,7 +398,7 @@ func (c *Chart) loadDirectory(dir string) ([]*ChartMember, error) {
return members, nil 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) { func (c *Chart) LoadMember(path string) (*ChartMember, error) {
filename := filepath.Join(c.loader.dir(), path) filename := filepath.Join(c.loader.dir(), path)
return c.loadMember(filename) return c.loadMember(filename)
......
...@@ -62,9 +62,9 @@ type RepoType string ...@@ -62,9 +62,9 @@ type RepoType string
type RepoFormat string type RepoFormat string
const ( const (
// PathRepo identfies a repository where charts are organized hierarchically. // PathRepoFormat identfies a repository where charts are organized hierarchically.
PathRepoFormat = RepoFormat("path") 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") 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