type IChartMgr interface {
GetCharts() (map[string]interface{}, error)
- DownloadChart(string, string) (io.ReadCloser, error)
+ DownloadChart(chartName string, version string) (io.ReadCloser, error)
GetChartsByName(name string) ([]map[string]interface{}, error)
GetChartsByNameAndVersion(name, version string) (map[string]interface{}, error)
}
return nil, err
}
- return resp.Request.Body, nil
+ return resp.Body, nil
}
func (c *ChartMgr) GetChartsByName(name string) ([]map[string]interface{}, error) {