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

Method LayerInfosForCopy

types/types.go:416–416  ·  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. The Digest field is guaranteed to be provided, Size may be -1 and MediaType may be optionally provided. WARNING: The list may contain

(context.Context)

Source from the content-addressed store, hash-verified

414 // The Digest field is guaranteed to be provided, Size may be -1 and MediaType may be optionally provided.
415 // WARNING: The list may contain duplicates, and they are semantically relevant.
416 LayerInfosForCopy(context.Context) ([]BlobInfo, error)
417 // EmbeddedDockerReferenceConflicts whether a Docker reference embedded in the manifest, if any, conflicts with destination ref.
418 // It returns false if the manifest does not embed a Docker reference.
419 // (This embedding unfortunately happens for Docker schema1, please do not add support for this in any new formats.)

Callers 6

TestDuplicateBlobFunction · 0.95
copyLayersMethod · 0.65
LayerInfosForCopyMethod · 0.65
LayerInfosForCopyMethod · 0.65
LayerInfosForCopyMethod · 0.65
LayerInfosForCopyMethod · 0.65

Calls

no outgoing calls

Tested by 1

TestDuplicateBlobFunction · 0.76