(opts ...chartOption)
| 123 | type chartOption func(*chartOptions) |
| 124 | |
| 125 | func buildChart(opts ...chartOption) *chart.Chart { |
| 126 | modTime := time.Now() |
| 127 | defaultTemplates := []*common.File{ |
| 128 | {Name: "templates/hello", ModTime: modTime, Data: []byte("hello: world")}, |
| 129 | {Name: "templates/hooks", ModTime: modTime, Data: []byte(manifestWithHook)}, |
| 130 | } |
| 131 | return buildChartWithTemplates(defaultTemplates, opts...) |
| 132 | } |
| 133 | |
| 134 | func buildChartWithTemplates(templates []*common.File, opts ...chartOption) *chart.Chart { |
| 135 | c := &chartOptions{ |
no test coverage detected
searching dependent graphs…