Skip to content

Commit efade57

Browse files
committed
fixup! media-types: Define layer media types with and without '+gzip'
1 parent 1053195 commit efade57

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

layer.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ This document describes how to serialize a filesystem and filesystem changes lik
44
One or more layers are applied on top of each other to create a complete filesystem.
55
This document will use a concrete example to illustrate how to create and consume these filesystem layers.
66

7-
This section defines the `application/vnd.oci.image.layer.v1.tar` and `application/vnd.oci.image.layer.nondistributable.v1.tar` [media types](media-types.md).
7+
This section defines the `application/vnd.oci.image.layer.v1.tar`, `application/vnd.oci.image.layer.v1.tar+gzip`, `application/vnd.oci.image.layer.nondistributable.v1.tar`, and `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip` [media types](media-types.md).
8+
9+
## `+gzip` Media Types
10+
11+
The media type `application/vnd.oci.image.layer.v1.tar+gzip` represents an `application/vnd.oci.image.layer.v1.tar` payload which has been compressed with [gzip][rfc1952].
12+
The media type `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip` represents an `application/vnd.oci.image.layer.nondistributable.v1.tar` payload which has been compressed with [gzip][rfc1952].
813

914
## Distributable Format
1015

@@ -318,4 +323,5 @@ Implementations SHOULD NOT upload layers tagged with this media type; however, s
318323

319324
[libarchive-tar]: https://github.com/libarchive/libarchive/wiki/ManPageTar5#POSIX_ustar_Archives
320325
[gnu-tar-standard]: http://www.gnu.org/software/tar/manual/html_node/Standard.html
326+
[rfc1952]: https://tools.ietf.org/html/rfc1952
321327
[tar-archive]: https://en.wikipedia.org/wiki/Tar_(computing)

manifest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Unlike the [Manifest List](manifest-list.md), which contains information about a
5555
Implementations MUST support at least the following media types:
5656

5757
- [`application/vnd.oci.image.layer.v1.tar`](layer.md)
58-
- [`application/vnd.oci.image.layer.v1.tar+gzip`](media-types.md#oci-image-media-types)
58+
- [`application/vnd.oci.image.layer.v1.tar+gzip`](layer.md#gzip-media-types)
5959
- [`application/vnd.oci.image.layer.nondistributable.v1.tar`](layer.md#non-distributable-layers)
60-
- [`application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`](media-types.md#oci-image-media-types)
60+
- [`application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`](layer.md#gzip-media-types)
6161

6262
Manifests concerned with portability SHOULD use one of the above media types.
6363

media-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ The following media types identify the formats described here and their referenc
77
- `application/vnd.oci.image.manifest.v1+json`: [Image manifest](manifest.md#image-manifest)
88
- `application/vnd.oci.image.config.v1+json`: [Image config](config.md)
99
- `application/vnd.oci.image.layer.v1.tar`: ["Layer", as a tar archive](layer.md)
10-
- `application/vnd.oci.image.layer.v1.tar+gzip`: ["Layer", as a tar archive](layer.md) compressed with [gzip][rfc1952]
10+
- `application/vnd.oci.image.layer.v1.tar+gzip`: ["Layer", as a tar archive](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
1111
- `application/vnd.oci.image.layer.nondistributable.v1.tar`: ["Layer", as a tar archive with distribution restrictions](layer.md#non-distributable-layers)
12-
- `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a tar archive with distribution restrictions](layer.md#non-distributable-layers) compressed with [gzip][rfc1952]
12+
- `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`: ["Layer", as a tar archive with distribution restrictions](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
1313

1414
## Media Type Conflicts
1515

0 commit comments

Comments
 (0)