MCPcopy
hub / github.com/containerd/containerd / Apply

Method Apply

core/diff/diff.go:86–86  ·  view source on GitHub ↗

Apply applies the content referred to by the given descriptor to the provided mount. The method of applying is based on the implementation and content descriptor. For example, in the common case the descriptor is a file system difference in tar format, that tar would be applied on top of the mounts.

(ctx context.Context, desc ocispec.Descriptor, mount []mount.Mount, opts ...ApplyOpt)

Source from the content-addressed store, hash-verified

84 // case the descriptor is a file system difference in tar format,
85 // that tar would be applied on top of the mounts.
86 Apply(ctx context.Context, desc ocispec.Descriptor, mount []mount.Mount, opts ...ApplyOpt) (ocispec.Descriptor, error)
87}
88
89// WithCompressor sets the function to be used to compress the diff stream.

Callers 15

WithRestoreRWFunction · 0.65
ApplyMethod · 0.65
FuzzDiffApplyFunction · 0.65
unpackMethod · 0.65
TestLoopbackMountFunction · 0.65
TestLoopbackOverlayFunction · 0.65
initalizeBlockDeviceFunction · 0.65
benchmarkSnapshotterFunction · 0.65
applyToMountsFunction · 0.65
checkSnapshotsFunction · 0.65
checkLayerFileUpdateFunction · 0.65

Implementers 15

servicecontrib/diffservice/service.go
diffRemotecore/diff/proxy/differ.go
fsAppliercore/diff/apply/apply.go
overlayDiffApplierpkg/archive/tar_linux_test.go
diffApplierpkg/archive/tar_test.go
diffClientapi/services/diff/v1/diff_grpc.pb.go
UnimplementedDiffServerapi/services/diff/v1/diff_grpc.pb.go
ttrpcdiffClientapi/services/diff/v1/diff_ttrpc.pb.go
windowsDiffplugins/diff/windows/windows.go
cimDiffplugins/diff/windows/cimfs.go
blockCIMDiffplugins/diff/windows/cimfs.go
erofsDiffplugins/diff/erofs/differ.go

Calls

no outgoing calls

Tested by 15

FuzzDiffApplyFunction · 0.52
TestLoopbackMountFunction · 0.52
TestLoopbackOverlayFunction · 0.52
initalizeBlockDeviceFunction · 0.52
benchmarkSnapshotterFunction · 0.52
TestWithUserFunction · 0.52
TestWithUserIDFunction · 0.52
TestWithUsernameFunction · 0.52
TestWithAdditionalGIDsFunction · 0.52