NewFiles creates a new files from chart files. Given an []*chart.File (the format for files in a chart.Chart), extract a map of files.
(from []*common.File)
| 32 | // NewFiles creates a new files from chart files. |
| 33 | // Given an []*chart.File (the format for files in a chart.Chart), extract a map of files. |
| 34 | func newFiles(from []*common.File) files { |
| 35 | files := make(map[string][]byte) |
| 36 | for _, f := range from { |
| 37 | files[f.Name] = f.Data |
| 38 | } |
| 39 | return files |
| 40 | } |
| 41 | |
| 42 | // GetBytes gets a file by path. |
| 43 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…