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

Function layerDigestsDiffer

copy/single.go:564–568  ·  view source on GitHub ↗

layerDigestsDiffer returns true iff the digests in a and b differ (ignoring sizes and possible other fields)

(a, b []types.BlobInfo)

Source from the content-addressed store, hash-verified

562
563// layerDigestsDiffer returns true iff the digests in a and b differ (ignoring sizes and possible other fields)
564func layerDigestsDiffer(a, b []types.BlobInfo) bool {
565 return !slices.EqualFunc(a, b, func(a, b types.BlobInfo) bool {
566 return a.Digest == b.Digest
567 })
568}
569
570// copyUpdatedConfigAndManifest updates the image per ic.manifestUpdates, if necessary,
571// stores the resulting config and manifest to the destination, and returns the stored manifest

Callers 1

copyLayersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…