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.