2017-02-01 00:45:59 +00:00
|
|
|
{
|
|
|
|
"description": "Definitions particular to OpenContainer Image Specification",
|
|
|
|
"definitions": {
|
|
|
|
"mediaType": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/mediaType",
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9!#$&-^_.+]{0,126}/[A-Za-z0-9][A-Za-z0-9!#$&-^_.+]{0,126}$"
|
|
|
|
},
|
|
|
|
"digest": {
|
|
|
|
"description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'",
|
|
|
|
"type": "string",
|
|
|
|
"pattern": "^[a-z0-9_+.-]+:[a-f0-9]+$"
|
|
|
|
},
|
|
|
|
"manifestDescriptor": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/manifestDescriptor",
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"mediaType",
|
|
|
|
"size",
|
2017-05-17 17:18:35 +00:00
|
|
|
"digest"
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"mediaType": {
|
|
|
|
"description": "the mediatype of the referenced object",
|
|
|
|
"$ref": "#/definitions/mediaType"
|
|
|
|
},
|
|
|
|
"size": {
|
|
|
|
"description": "the size in bytes of the referenced object",
|
|
|
|
"$ref": "defs.json#/definitions/int64"
|
|
|
|
},
|
|
|
|
"digest": {
|
|
|
|
"description": "the cryptographic checksum digest of the object, in the pattern '<hash>:<hexadecimal digest>'",
|
|
|
|
"$ref": "#/definitions/digest"
|
|
|
|
},
|
|
|
|
"urls": {
|
|
|
|
"description": "a list of urls from which this object may be downloaded",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string",
|
|
|
|
"format": "uri"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"platform": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/platform",
|
|
|
|
"type": "object",
|
|
|
|
"required": [
|
|
|
|
"architecture",
|
|
|
|
"os"
|
|
|
|
],
|
|
|
|
"properties": {
|
|
|
|
"architecture": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/platform/architecture",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"os": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/platform/os",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"os.version": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/platform/os.version",
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"os.features": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/platform/os.features",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"variant": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"features": {
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-05-17 17:18:35 +00:00
|
|
|
},
|
|
|
|
"annotations": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/descriptor/annotations",
|
|
|
|
"$ref": "#/definitions/annotations"
|
2017-02-01 00:45:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"annotations": {
|
|
|
|
"id": "https://opencontainers.org/schema/image/annotations",
|
|
|
|
"oneOf": [
|
|
|
|
{
|
|
|
|
"$ref": "defs.json#/definitions/mapStringString"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "null"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|