AddDependency determines if the chart is a subchart.
(charts ...*Chart)
| 85 | |
| 86 | // AddDependency determines if the chart is a subchart. |
| 87 | func (ch *Chart) AddDependency(charts ...*Chart) { |
| 88 | for i, x := range charts { |
| 89 | charts[i].parent = ch |
| 90 | ch.dependencies = append(ch.dependencies, x) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // Root finds the root chart. |
| 95 | func (ch *Chart) Root() *Chart { |
no outgoing calls
no test coverage detected