|
|
@ -59,8 +59,10 @@ func NewPrinter(ctx context.Context, opt Opt, name string, format string) (*Prin
|
|
|
|
switch manifest.MediaType {
|
|
|
|
switch manifest.MediaType {
|
|
|
|
case images.MediaTypeDockerSchema2ManifestList, ocispecs.MediaTypeImageIndex:
|
|
|
|
case images.MediaTypeDockerSchema2ManifestList, ocispecs.MediaTypeImageIndex:
|
|
|
|
for _, m := range index.Manifests {
|
|
|
|
for _, m := range index.Manifests {
|
|
|
|
|
|
|
|
if m.Platform != nil {
|
|
|
|
pforms = append(pforms, *m.Platform)
|
|
|
|
pforms = append(pforms, *m.Platform)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
pforms = append(pforms, platforms.DefaultSpec())
|
|
|
|
pforms = append(pforms, platforms.DefaultSpec())
|
|
|
|
}
|
|
|
|
}
|
|
|
|