David K. Bainbridge | 215e024 | 2017-09-05 23:18:24 -0700 | [diff] [blame] | 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 | // MediaTypeImageManifest specifies the media type for an image manifest. |
| 25 | MediaTypeImageManifest = "application/vnd.oci.image.manifest.v1+json" |
| 26 | |
| 27 | // MediaTypeImageIndex specifies the media type for an image index. |
| 28 | MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json" |
| 29 | |
| 30 | // MediaTypeImageLayer is the media type used for layers referenced by the manifest. |
| 31 | MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar" |
| 32 | |
| 33 | // MediaTypeImageLayerGzip is the media type used for gzipped layers |
| 34 | // referenced by the manifest. |
| 35 | MediaTypeImageLayerGzip = "application/vnd.oci.image.layer.v1.tar+gzip" |
| 36 | |
| 37 | // MediaTypeImageLayerNonDistributable is the media type for layers referenced by |
| 38 | // the manifest but with distribution restrictions. |
| 39 | MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar" |
| 40 | |
| 41 | // MediaTypeImageLayerNonDistributableGzip is the media type for |
| 42 | // gzipped layers referenced by the manifest but with distribution |
| 43 | // restrictions. |
| 44 | MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip" |
| 45 | |
| 46 | // MediaTypeImageConfig specifies the media type for the image configuration. |
| 47 | MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json" |
| 48 | ) |