Skip to content

Commit 9f4348a

Browse files
authored
Merge pull request #788 from giuseppe/zstd
media-types: Define layer media types suffix '+zstd'
2 parents d110911 + 1a29e86 commit 9f4348a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

layer.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ 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`, `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).
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.v1.tar+zstd`, `application/vnd.oci.image.layer.nondistributable.v1.tar`, `application/vnd.oci.image.layer.nondistributable.v1.tar+gzip`, and `application/vnd.oci.image.layer.nondistributable.v1.tar+zstd` [media types](media-types.md).
88

99
## `+gzip` Media Types
1010

1111
* 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_2].
1212
* 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_2].
1313

14+
## `+zstd` Media Types
15+
16+
* The media type `application/vnd.oci.image.layer.v1.tar+zstd` represents an `application/vnd.oci.image.layer.v1.tar` payload which has been compressed with [zstd][rfc8478].
17+
* The media type `application/vnd.oci.image.layer.nondistributable.v1.tar+zstd` represents an `application/vnd.oci.image.layer.nondistributable.v1.tar` payload which has been compressed with [zstd][rfc8478].
18+
1419
## Distributable Format
1520

1621
* Layer Changesets for the [media type](media-types.md) `application/vnd.oci.image.layer.v1.tar` MUST be packaged in [tar archive][tar-archive].
@@ -331,3 +336,4 @@ Implementations SHOULD NOT upload layers tagged with this media type; however, s
331336
[gnu-tar-standard]: http://www.gnu.org/software/tar/manual/html_node/Standard.html
332337
[rfc1952_2]: https://tools.ietf.org/html/rfc1952
333338
[tar-archive]: https://en.wikipedia.org/wiki/Tar_(computing)
339+
[rfc8478]: https://tools.ietf.org/html/rfc8478

media-types.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ The following media types identify the formats described here and their referenc
99
- `application/vnd.oci.image.config.v1+json`: [Image config](config.md)
1010
- `application/vnd.oci.image.layer.v1.tar`: ["Layer", as a tar archive](layer.md)
1111
- `application/vnd.oci.image.layer.v1.tar+gzip`: ["Layer", as a tar archive](layer.md#gzip-media-types) compressed with [gzip][rfc1952]
12+
- `application/vnd.oci.image.layer.v1.tar+zstd`: ["Layer", as a tar archive](layer.md#zstd-media-types) compressed with [zstd][rfc8478]
1213
- `application/vnd.oci.image.layer.nondistributable.v1.tar`: ["Layer", as a tar archive with distribution restrictions](layer.md#non-distributable-layers)
1314
- `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]
15+
- `application/vnd.oci.image.layer.nondistributable.v1.tar+zstd`: ["Layer", as a tar archive with distribution restrictions](layer.md#zstd-media-types) compressed with [zstd][rfc8478]
1416

1517
## Media Type Conflicts
1618

@@ -66,3 +68,4 @@ The following figure shows how the above media types reference each other:
6668
The image-index being a "fat manifest" references a list of image manifests per target platform. An image manifest references exactly one target configuration and possibly many layers.
6769

6870
[rfc1952]: https://tools.ietf.org/html/rfc1952
71+
[rfc8478]: https://tools.ietf.org/html/rfc8478

0 commit comments

Comments
 (0)