Skip to content

Commit 95c112e

Browse files
committed
Add the media type application/vnd.oci.image.layer.v1.raw
1 parent 3c3d717 commit 95c112e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

specs-go/v1/annotations.go

+4
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ const (
5959

6060
// AnnotationBaseImageName is the annotation key for the image reference of the image's base image.
6161
AnnotationBaseImageName = "org.opencontainers.image.base.name"
62+
63+
// AnnotationImageLayerPath is the annotation key for the layer path.
64+
// SHOULD only work for media type `application/vnd.oci.image.layer.v1.raw`
65+
AnnotationImageLayerPath = "org.opencontainers.image.layer.path"
6266
)

specs-go/v1/mediatype.go

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ const (
4545
// MediaTypeImageLayerZstd is the media type used for zstd compressed
4646
// layers referenced by the manifest.
4747
MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd"
48+
49+
// MediaTypeImageLayerRaw is the media type used for layers referenced by the manifest.
50+
// the file path is specified by annotation `org.opencontainers.image.layer.path`.
51+
MediaTypeImageLayerRaw = "application/vnd.oci.image.layer.v1.raw"
4852
)
4953

5054
// Non-distributable layer media-types.

0 commit comments

Comments
 (0)