ref(chart): ChartContent -> chartContent

* since it's not being used outside of this package
* also LoadContent -> loadContent for same reason
* This addresses some style issues from #401
pull/417/head
Michelle Noorali 10 years ago
parent cc7bbd6d6d
commit e07fd606f4

@ -427,20 +427,20 @@ func (c *Chart) loadMember(filename string) (*Member, error) {
return result, nil return result, nil
} }
//ChartContent is abstraction for the contents of a chart //chartContent is abstraction for the contents of a chart
type ChartContent struct { type chartContent struct {
Chartfile *Chartfile `json:"chartfile"` Chartfile *Chartfile `json:"chartfile"`
Members []*Member `json:"members"` Members []*Member `json:"members"`
} }
// LoadContent loads contents of a chart directory into ChartContent // loadContent loads contents of a chart directory into chartContent
func (c *Chart) LoadContent() (*ChartContent, error) { func (c *Chart) loadContent() (*chartContent, error) {
ms, err := c.loadDirectory(c.Dir()) ms, err := c.loadDirectory(c.Dir())
if err != nil { if err != nil {
return nil, err return nil, err
} }
cc := &ChartContent{ cc := &chartContent{
Chartfile: c.Chartfile(), Chartfile: c.Chartfile(),
Members: ms, Members: ms,
} }

Loading…
Cancel
Save