From 3217ae8ea5981f5057ef55158d758ffeeb140f25 Mon Sep 17 00:00:00 2001 From: jackgr Date: Tue, 22 Mar 2016 14:24:49 -0700 Subject: [PATCH] Expose LoadContent --- pkg/chart/chart.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/chart/chart.go b/pkg/chart/chart.go index fc068285a..4a3281745 100644 --- a/pkg/chart/chart.go +++ b/pkg/chart/chart.go @@ -427,20 +427,20 @@ func (c *Chart) loadMember(filename string) (*Member, error) { return result, nil } -// ChartContent is abstraction for the contents of a chart. -type ChartContent struct { +// Content is abstraction for the contents of a chart. +type Content struct { Chartfile *Chartfile `json:"chartfile"` Members []*Member `json:"members"` } -// loadContent loads contents of a chart directory into ChartContent -func (c *Chart) loadContent() (*ChartContent, error) { +// LoadContent loads contents of a chart directory into Content +func (c *Chart) LoadContent() (*Content, error) { ms, err := c.loadDirectory(c.Dir()) if err != nil { return nil, err } - cc := &ChartContent{ + cc := &Content{ Chartfile: c.Chartfile(), Members: ms, }