Skip to content

Commit

Permalink
Support the media type application/vnd.oci.image.layer.v1.raw
Browse files Browse the repository at this point in the history
Signed-off-by: Shiming Zhang <[email protected]>
  • Loading branch information
wzshiming committed Sep 3, 2024
1 parent 3c3d717 commit 9964a8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 9964a8f

Please sign in to comment.