Skip to content

Commit 8f7509c

Browse files
authored
Add image index example with mixed media types (#15)
Signed-off-by: Sajay Antony <[email protected]> Signed-off-by: Sajay Antony <[email protected]>
1 parent dabeb06 commit 8f7509c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

image-index.md

+35
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,40 @@ When the variant of the CPU is not listed in the table, values are implementatio
137137
}
138138
```
139139

140+
## Example Image Index with multiple media types
141+
142+
*Example showing an image index pointing to manifests with multiple media types:*
143+
```json,title=Image%20Index&mediatype=application/vnd.oci.image.index.v1%2Bjson
144+
{
145+
"schemaVersion": 2,
146+
"mediaType": "application/vnd.oci.image.index.v1+json",
147+
"manifests": [
148+
{
149+
"mediaType": "application/vnd.oci.image.manifest.v1+json",
150+
"size": 7143,
151+
"digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
152+
"platform": {
153+
"architecture": "ppc64le",
154+
"os": "linux"
155+
}
156+
},
157+
{
158+
"mediaType": "application/vnd.oci.artifact.manifest.v1+json",
159+
"size": 7682,
160+
"digest": "sha256:601570aaff1b68a61eb9c85b8beca1644e698003e0cdb5bce960f193d265a8b7",
161+
"artifactType": "application/example",
162+
"annotations": {
163+
"com.example.artifactKey1": "value1",
164+
"com.example.artifactKey2": "value2"
165+
}
166+
}
167+
],
168+
"annotations": {
169+
"com.example.key1": "value1",
170+
"com.example.key2": "value2"
171+
}
172+
}
173+
```
174+
140175
[go-environment2]: https://golang.org/doc/install/source#environment
141176
[matrix]: media-types.md#compatibility-matrix

0 commit comments

Comments
 (0)