AppendLayers applies layers to a base image.
(base v1.Image, layers ...v1.Layer)
| 49 | |
| 50 | // AppendLayers applies layers to a base image. |
| 51 | func AppendLayers(base v1.Image, layers ...v1.Layer) (v1.Image, error) { |
| 52 | additions := make([]Addendum, 0, len(layers)) |
| 53 | for _, layer := range layers { |
| 54 | additions = append(additions, Addendum{Layer: layer}) |
| 55 | } |
| 56 | |
| 57 | return Append(base, additions...) |
| 58 | } |
| 59 | |
| 60 | // Append will apply the list of addendums to the base image |
| 61 | func Append(base v1.Image, adds ...Addendum) (v1.Image, error) { |
searching dependent graphs…