Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the media type application/vnd.oci.image.layer.v1.raw #1197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions specs-go/v1/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
4 changes: 4 additions & 0 deletions specs-go/v1/mediatype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down