Skip to content

Commit

Permalink
Add imagelayout validator
Browse files Browse the repository at this point in the history
Add imagelayout validator so the image-tool or other
tools can use the image-spec to validate the oci image.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
  • Loading branch information
coolljt0725 committed Jan 22, 2017
1 parent 4afc966 commit 3444e22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
MediaTypeManifest Validator = v1.MediaTypeImageManifest
MediaTypeManifestList Validator = v1.MediaTypeImageManifestList
MediaTypeImageConfig Validator = v1.MediaTypeImageConfig
TypeImageLayout Validator = v1.ImageLayoutFile
MediaTypeImageLayer unimplemented = v1.MediaTypeImageLayer
)

Expand All @@ -40,6 +41,7 @@ var (
MediaTypeManifest: "image-manifest-schema.json",
MediaTypeManifestList: "manifest-list-schema.json",
MediaTypeImageConfig: "config-schema.json",
TypeImageLayout: "image-layout-schema.json",
}
)

Expand Down

0 comments on commit 3444e22

Please sign in to comment.