Add imagelayout validator and ImageLayoutFile const#519
Merged
stevvooe merged 3 commits intoopencontainers:masterfrom Feb 10, 2017
Merged
Add imagelayout validator and ImageLayoutFile const#519stevvooe merged 3 commits intoopencontainers:masterfrom
stevvooe merged 3 commits intoopencontainers:masterfrom
Conversation
Contributor
stevvooe
reviewed
Jan 25, 2017
schema/schema.go
Outdated
| MediaTypeManifest Validator = v1.MediaTypeImageManifest | ||
| MediaTypeManifestList Validator = v1.MediaTypeImageManifestList | ||
| MediaTypeImageConfig Validator = v1.MediaTypeImageConfig | ||
| TypeImageLayout Validator = v1.ImageLayoutFile |
Contributor
There was a problem hiding this comment.
O, this is weird. All of these should start with Validator.
Contributor
There was a problem hiding this comment.
All of these should start with Validator.
Or we could drop them and use a map: #403.
Contributor
There was a problem hiding this comment.
#403 is never going to land. This effectively uses a map internally anyways. See my example.
Member
Author
Added a commit to address this. |
0ab3d08 to
471750d
Compare
Member
Author
|
You have to modify other test files. |
Contributor
Signed-off-by: Lei Jitang <leijitang@huawei.com>
Add image layout 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>
Signed-off-by: Lei Jitang <leijitang@huawei.com>
471750d to
88d41e8
Compare
Member
Author
Member
1 similar comment
Contributor
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We had added image layout schema, but didn't add image layout validator.
Add imagelayout validator and ImageLayoutFile const, so image tool and other
tools can use image -spec to validate the layout of the oci image.