-
Notifications
You must be signed in to change notification settings - Fork 690
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
Add imagelayout validator and ImageLayoutFile const #519
Conversation
schema/schema.go
Outdated
@@ -26,6 +26,7 @@ const ( | |||
MediaTypeManifest Validator = v1.MediaTypeImageManifest | |||
MediaTypeManifestList Validator = v1.MediaTypeImageManifestList | |||
MediaTypeImageConfig Validator = v1.MediaTypeImageConfig | |||
TypeImageLayout Validator = v1.ImageLayoutFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O, this is weird. All of these should start with Validator
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these should start with Validator.
Or we could drop them and use a map: #403.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#403 is never going to land. This effectively uses a map internally anyways. See my example.
Added a commit to address this. |
0ab3d08
to
471750d
Compare
You have to modify other test files. |
Signed-off-by: Lei Jitang <[email protected]>
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 <[email protected]>
Signed-off-by: Lei Jitang <[email protected]>
471750d
to
88d41e8
Compare
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.