MCPcopy
hub / github.com/google/go-containerregistry / AppendLayers

Function AppendLayers

pkg/v1/mutate/mutate.go:51–58  ·  view source on GitHub ↗

AppendLayers applies layers to a base image.

(base v1.Image, layers ...v1.Layer)

Source from the content-addressed store, hash-verified

49
50// AppendLayers applies layers to a base image.
51func 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
61func Append(base v1.Image, adds ...Addendum) (v1.Image, error) {

Calls 1

AppendFunction · 0.70

Used in the wild real call sites across dependent graphs

searching dependent graphs…