MCPcopy
hub / github.com/containerd/containerd / ApplyLayers

Function ApplyLayers

pkg/rootfs/apply.go:49–51  ·  view source on GitHub ↗

ApplyLayers applies all the layers using the given snapshotter and applier. The returned result is a chain id digest representing all the applied layers. Layers are applied in order they are given, making the first layer the bottom-most layer in the layer chain.

(ctx context.Context, layers []Layer, sn snapshots.Snapshotter, a diff.Applier)

Source from the content-addressed store, hash-verified

47// Layers are applied in order they are given, making the first layer the
48// bottom-most layer in the layer chain.
49func ApplyLayers(ctx context.Context, layers []Layer, sn snapshots.Snapshotter, a diff.Applier) (digest.Digest, error) {
50 return ApplyLayersWithOpts(ctx, layers, sn, a, nil)
51}
52
53// ApplyLayersWithOpts applies all the layers using the given snapshotter, applier, and apply opts.
54// The returned result is a chain id digest representing all the applied layers.

Callers

nothing calls this directly

Calls 1

ApplyLayersWithOptsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…