registry/manifest/ocischema
Owen W. Taylor 60d9c5dfad Handle OCI manifests and image indexes without a media type
In the OCI image specification, the MediaType field is reserved
and otherwise undefined; assume that manifests without a media
in storage are OCI images or image indexes, and determine which
by looking at what fields are in the JSON. We do keep a check
that when unmarshalling an OCI image or image index, if it has
a MediaType field, it must match that media type of the upload.

Signed-off-by: Owen W. Taylor <otaylor@fishsoup.net>
2018-06-19 11:24:25 -04:00
..
builder.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
builder_test.go folow commit 9c88801a12 2018-06-18 13:55:24 -05:00
manifest.go Handle OCI manifests and image indexes without a media type 2018-06-19 11:24:25 -04:00
manifest_test.go Handle OCI manifests and image indexes without a media type 2018-06-19 11:24:25 -04:00