ref(*): fix comment style

pull/417/head
Michelle Noorali 9 years ago
parent ee61c3318d
commit 28d4624692

@ -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) {
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
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")
) )

Loading…
Cancel
Save