MCPcopy
hub / github.com/containerd/containerd / ApplyLayer

Function ApplyLayer

pkg/rootfs/apply.go:84–86  ·  view source on GitHub ↗

ApplyLayer applies a single layer on top of the given provided layer chain, using the provided snapshotter and applier. If the layer was unpacked true is returned, if the layer already exists false is returned.

(ctx context.Context, layer Layer, chain []digest.Digest, sn snapshots.Snapshotter, a diff.Applier, opts ...snapshots.Opt)

Source from the content-addressed store, hash-verified

82// using the provided snapshotter and applier. If the layer was unpacked true
83// is returned, if the layer already exists false is returned.
84func ApplyLayer(ctx context.Context, layer Layer, chain []digest.Digest, sn snapshots.Snapshotter, a diff.Applier, opts ...snapshots.Opt) (bool, error) {
85 return ApplyLayerWithOpts(ctx, layer, chain, sn, a, opts, nil)
86}
87
88// ApplyLayerWithOpts applies a single layer on top of the given provided layer chain,
89// using the provided snapshotter, applier, and apply opts. If the layer was unpacked true

Callers

nothing calls this directly

Calls 1

ApplyLayerWithOptsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…