isMultiImage returns true if img is a list of images
(ctx context.Context, img types.UnparsedImage)
| 201 | |
| 202 | // isMultiImage returns true if img is a list of images |
| 203 | func 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 |
searching dependent graphs…