1 // Copyright 2016 The Linux Foundation 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package v1 16 17 const ( 18 // MediaTypeDescriptor specifies the media type for a content descriptor. 19 MediaTypeDescriptor = "application/vnd.oci.descriptor.v1+json" 20 21 // MediaTypeLayoutHeader specifies the media type for the oci-layout. 22 MediaTypeLayoutHeader = "application/vnd.oci.layout.header.v1+json" 23 24 // MediaTypeImageIndex specifies the media type for an image index. 25 MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json" 26 27 // MediaTypeImageManifest specifies the media type for an image manifest. 28 MediaTypeImageManifest = "application/vnd.oci.image.manifest.v1+json" 29 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 ) 36 37 const ( 38 // MediaTypeImageLayer is the media type used for layers referenced by the manifest. 39 MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar" 40 41 // MediaTypeImageLayerGzip is the media type used for gzipped layers 42 // referenced by the manifest. 43 MediaTypeImageLayerGzip = "application/vnd.oci.image.layer.v1.tar+gzip" 44 45 // MediaTypeImageLayerZstd is the media type used for zstd compressed 46 // layers referenced by the manifest. 47 MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd" 48 ) 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 ( 57 // MediaTypeImageLayerNonDistributable is the media type for layers referenced by 58 // the manifest but with distribution restrictions. 59 // 60 // Deprecated: Non-distributable layers are deprecated, and not recommended 61 // for future use. Implementations SHOULD NOT produce new non-distributable 62 // layers. 63 // https://github.com/opencontainers/image-spec/pull/965 64 MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar" 65 66 // MediaTypeImageLayerNonDistributableGzip is the media type for 67 // gzipped layers referenced by the manifest but with distribution 68 // restrictions. 69 // 70 // Deprecated: Non-distributable layers are deprecated, and not recommended 71 // for future use. Implementations SHOULD NOT produce new non-distributable 72 // layers. 73 // https://github.com/opencontainers/image-spec/pull/965 74 MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip" 75 76 // MediaTypeImageLayerNonDistributableZstd is the media type for zstd 77 // compressed layers referenced by the manifest but with distribution 78 // restrictions. 79 // 80 // Deprecated: Non-distributable layers are deprecated, and not recommended 81 // for future use. Implementations SHOULD NOT produce new non-distributable 82 // layers. 83 // https://github.com/opencontainers/image-spec/pull/965 84 MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd" 85 ) 86