From be11dc5bf8c3304d50c16eb6daa5163a1a9400a0 Mon Sep 17 00:00:00 2001 From: Sajay Antony Date: Mon, 15 Aug 2022 17:56:25 -0700 Subject: [PATCH] Add image index example with mixed media types (#15) Signed-off-by: Sajay Antony --- image-index.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/image-index.md b/image-index.md index ab3dc4e9c..4df141545 100644 --- a/image-index.md +++ b/image-index.md @@ -137,5 +137,40 @@ When the variant of the CPU is not listed in the table, values are implementatio } ``` +## Example Image Index with multiple media types + +*Example showing an image index pointing to manifests with multiple media types:* +```json,title=Image%20Index&mediatype=application/vnd.oci.image.index.v1%2Bjson +{ + "schemaVersion": 2, + "mediaType": "application/vnd.oci.image.index.v1+json", + "manifests": [ + { + "mediaType": "application/vnd.oci.image.manifest.v1+json", + "size": 7143, + "digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f", + "platform": { + "architecture": "ppc64le", + "os": "linux" + } + }, + { + "mediaType": "application/vnd.oci.artifact.manifest.v1+json", + "size": 7682, + "digest": "sha256:601570aaff1b68a61eb9c85b8beca1644e698003e0cdb5bce960f193d265a8b7", + "artifactType": "application/example", + "annotations": { + "com.example.artifactKey1": "value1", + "com.example.artifactKey2": "value2" + } + } + ], + "annotations": { + "com.example.key1": "value1", + "com.example.key2": "value2" + } +} +``` + [go-environment2]: https://golang.org/doc/install/source#environment [matrix]: media-types.md#compatibility-matrix