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

Function isMultiImage

copy/manifest.go:203–209  ·  view source on GitHub ↗

isMultiImage returns true if img is a list of images

(ctx context.Context, img types.UnparsedImage)

Source from the content-addressed store, hash-verified

201
202// isMultiImage returns true if img is a list of images
203func isMultiImage(ctx context.Context, img types.UnparsedImage) (bool, error) {
204 _, mt, err := img.Manifest(ctx)
205 if err != nil {
206 return false, err
207 }
208 return manifest.MIMETypeIsMultiImage(mt), nil
209}
210
211// determineListConversion takes the current MIME type of a list of manifests,
212// the list of MIME types supported for a given destination, and a possible

Callers 3

ImageFunction · 0.85
TestIsMultiImageFunction · 0.85
copySingleImageMethod · 0.85

Calls 2

MIMETypeIsMultiImageFunction · 0.92
ManifestMethod · 0.65

Tested by 1

TestIsMultiImageFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…