@@ -21,12 +21,20 @@ const (
21
21
// MediaTypeLayoutHeader specifies the media type for the oci-layout.
22
22
MediaTypeLayoutHeader = "application/vnd.oci.layout.header.v1+json"
23
23
24
+ // MediaTypeImageIndex specifies the media type for an image index.
25
+ MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json"
26
+
24
27
// MediaTypeImageManifest specifies the media type for an image manifest.
25
28
MediaTypeImageManifest = "application/vnd.oci.image.manifest.v1+json"
26
29
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
+ )
29
36
37
+ const (
30
38
// MediaTypeImageLayer is the media type used for layers referenced by the manifest.
31
39
MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar"
32
40
@@ -37,7 +45,15 @@ const (
37
45
// MediaTypeImageLayerZstd is the media type used for zstd compressed
38
46
// layers referenced by the manifest.
39
47
MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd"
48
+ )
40
49
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 (
41
57
// MediaTypeImageLayerNonDistributable is the media type for layers referenced by
42
58
// the manifest but with distribution restrictions.
43
59
//
@@ -66,10 +82,4 @@ const (
66
82
// layers.
67
83
// https://github.com/opencontainers/image-spec/pull/965
68
84
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"
75
85
)
0 commit comments