@@ -21,12 +21,20 @@ const (
2121 // MediaTypeLayoutHeader specifies the media type for the oci-layout.
2222 MediaTypeLayoutHeader = "application/vnd.oci.layout.header.v1+json"
2323
24+ // MediaTypeImageIndex specifies the media type for an image index.
25+ MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json"
26+
2427 // MediaTypeImageManifest specifies the media type for an image manifest.
2528 MediaTypeImageManifest = "application/vnd.oci.image.manifest.v1+json"
2629
27- // MediaTypeImageIndex specifies the media type for an image index.
28- MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json"
30+ // MediaTypeImageConfig specifies the media type for the image configuration.
31+ MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json"
32+
33+ // MediaTypeEmptyJSON specifies the media type for an unused blob containing the value "{}".
34+ MediaTypeEmptyJSON = "application/vnd.oci.empty.v1+json"
35+ )
2936
37+ const (
3038 // MediaTypeImageLayer is the media type used for layers referenced by the manifest.
3139 MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar"
3240
@@ -37,7 +45,15 @@ const (
3745 // MediaTypeImageLayerZstd is the media type used for zstd compressed
3846 // layers referenced by the manifest.
3947 MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd"
48+ )
4049
50+ // Non-distributable layer media-types.
51+ //
52+ // Deprecated: Non-distributable layers are deprecated, and not recommended
53+ // for future use. Implementations SHOULD NOT produce new non-distributable
54+ // layers.
55+ // https://github.com/opencontainers/image-spec/pull/965
56+ const (
4157 // MediaTypeImageLayerNonDistributable is the media type for layers referenced by
4258 // the manifest but with distribution restrictions.
4359 //
@@ -66,10 +82,4 @@ const (
6682 // layers.
6783 // https://github.com/opencontainers/image-spec/pull/965
6884 MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd"
69-
70- // MediaTypeImageConfig specifies the media type for the image configuration.
71- MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json"
72-
73- // MediaTypeEmptyJSON specifies the media type for an unused blob containing the value `{}`
74- MediaTypeEmptyJSON = "application/vnd.oci.empty.v1+json"
7585)
0 commit comments