From 9964a8f94bdc54c920142cd59ad35f24fb0517f1 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Tue, 3 Sep 2024 18:52:57 +0800 Subject: [PATCH] Support the media type `application/vnd.oci.image.layer.v1.raw` Signed-off-by: Shiming Zhang --- specs-go/v1/annotations.go | 4 ++++ specs-go/v1/mediatype.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/specs-go/v1/annotations.go b/specs-go/v1/annotations.go index 581cf7cdf..c1bea520f 100644 --- a/specs-go/v1/annotations.go +++ b/specs-go/v1/annotations.go @@ -59,4 +59,8 @@ const ( // AnnotationBaseImageName is the annotation key for the image reference of the image's base image. AnnotationBaseImageName = "org.opencontainers.image.base.name" + + // AnnotationImageLayerPath is the annotation key for the layer path. + // SHOULD only work for media type `application/vnd.oci.image.layer.v1.raw` + AnnotationImageLayerPath = "org.opencontainers.image.layer.path" ) diff --git a/specs-go/v1/mediatype.go b/specs-go/v1/mediatype.go index ce8313e79..6060b3ab3 100644 --- a/specs-go/v1/mediatype.go +++ b/specs-go/v1/mediatype.go @@ -45,6 +45,10 @@ const ( // MediaTypeImageLayerZstd is the media type used for zstd compressed // layers referenced by the manifest. MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd" + + // MediaTypeImageLayerRaw is the media type used for layers referenced by the manifest. + // the file path is specified by annotation `org.opencontainers.image.layer.path`. + MediaTypeImageLayerRaw = "application/vnd.oci.image.layer.v1.raw" ) // Non-distributable layer media-types.