MCPcopy Create free account
hub / github.com/containers/image / LayerInfosForCopy

Method LayerInfosForCopy

docker/tarfile/src.go:102–104  ·  view source on GitHub ↗

LayerInfosForCopy returns either nil (meaning the values in the manifest are fine), or updated values for the layer blobsums that are listed in the image's manifest. If values are returned, they should be used when using GetBlob() to read the image's layers. This source implementation does not supp

(ctx context.Context, instanceDigest *digest.Digest)

Source from the content-addressed store, hash-verified

100// The Digest field is guaranteed to be provided; Size may be -1.
101// WARNING: The list may contain duplicates, and they are semantically relevant.
102func (s *Source) LayerInfosForCopy(ctx context.Context, instanceDigest *digest.Digest) ([]types.BlobInfo, error) {
103 return s.internal.LayerInfosForCopy(ctx, instanceDigest)
104}

Callers

nothing calls this directly

Calls 1

LayerInfosForCopyMethod · 0.65

Tested by

no test coverage detected