Skip to content

Commit 08355f8

Browse files
committed
image-layout: a MUST and some schema
Signed-off-by: Vincent Batts <[email protected]>
1 parent d65dbee commit 08355f8

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

schema/fs.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,19 @@ MrVJbn8cB+ZnN/gbAAD//0JyEpx5DAAA
286286
`,
287287
},
288288

289+
"/image-layout-schema.json": {
290+
local: "image-layout-schema.json",
291+
size: 414,
292+
modtime: 1478197703,
293+
compressed: `
294+
H4sIAAAJbogA/2yPwUrEMBCG732KIXq0TQVPue5pQdiD4EU8xHa2zWKTOJkKi/TdJZlWD91TmD/z8c3/
295+
UwGoHlNHLrILXhlQp4j+EDxb55HgONkB4dlew8zw0o04WfWQqfskgwE1Mkej9SUFX0vaBBp0T/bMdfuk
296+
JbsTzvUbkozWIaLvNlkqmGxrl8X1ZxELydeImQ0fF+zWLFKISOwwKQO5TTZkUi5+RUpSS/72bb9lA8IZ
297+
eEQ4HY6wMxdusycm54f/HP08KQNv6wygHpu2adU6v5d3qQCWcjDh1+wI+z/k1rlV5pbqNwAA//8bwMuB
298+
ngEAAA==
299+
`,
300+
},
301+
289302
"/image-manifest-schema.json": {
290303
local: "image-manifest-schema.json",
291304
size: 1118,

schema/image-layout-schema.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"description": "OpenContainer Image Layout Schema",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"id": "https://opencontainers.org/schema/image-layout",
5+
"type": "object",
6+
"properties": {
7+
"imageLayoutVersion": {
8+
"description": "version of the OCI image-layout",
9+
"type": "string",
10+
"enum": [
11+
"1.0.0"
12+
]
13+
}
14+
},
15+
"required": [
16+
"imageLayoutVersion"
17+
]
18+
}

0 commit comments

Comments
 (0)