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)
| 82 | // using the provided snapshotter and applier. If the layer was unpacked true |
| 83 | // is returned, if the layer already exists false is returned. |
| 84 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…