@@ -5102,6 +5102,103 @@ definitions:
51025102 format : " int64"
51035103 example : 1629574695515050031
51045104
5105+ OCIDescriptor :
5106+ type : " object"
5107+ x-go-name : Descriptor
5108+ description : |
5109+ A descriptor struct containing digest, media type, and size, as defined in
5110+ the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
5111+ properties :
5112+ mediaType :
5113+ description : |
5114+ The media type of the object this schema refers to.
5115+ type : " string"
5116+ example : " application/vnd.docker.distribution.manifest.v2+json"
5117+ digest :
5118+ description : |
5119+ The digest of the targeted content.
5120+ type : " string"
5121+ example : " sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96"
5122+ size :
5123+ description : |
5124+ The size in bytes of the blob.
5125+ type : " integer"
5126+ format : " int64"
5127+ example : 3987495
5128+ # TODO Not yet including these fields for now, as they are nil / omitted in our response.
5129+ # urls:
5130+ # description: |
5131+ # List of URLs from which this object MAY be downloaded.
5132+ # type: "array"
5133+ # items:
5134+ # type: "string"
5135+ # format: "uri"
5136+ # annotations:
5137+ # description: |
5138+ # Arbitrary metadata relating to the targeted content.
5139+ # type: "object"
5140+ # additionalProperties:
5141+ # type: "string"
5142+ # platform:
5143+ # $ref: "#/definitions/OCIPlatform"
5144+
5145+ OCIPlatform :
5146+ type : " object"
5147+ x-go-name : Platform
5148+ description : |
5149+ Describes the platform which the image in the manifest runs on, as defined
5150+ in the [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
5151+ properties :
5152+ architecture :
5153+ description : |
5154+ The CPU architecture, for example `amd64` or `ppc64`.
5155+ type : " string"
5156+ example : " arm"
5157+ os :
5158+ description : |
5159+ The operating system, for example `linux` or `windows`.
5160+ type : " string"
5161+ example : " windows"
5162+ os.version :
5163+ description : |
5164+ Optional field specifying the operating system version, for example on
5165+ Windows `10.0.19041.1165`.
5166+ type : " string"
5167+ example : " 10.0.19041.1165"
5168+ os.features :
5169+ description : |
5170+ Optional field specifying an array of strings, each listing a required
5171+ OS feature (for example on Windows `win32k`).
5172+ type : " array"
5173+ items :
5174+ type : " string"
5175+ example :
5176+ - " win32k"
5177+ variant :
5178+ description : |
5179+ Optional field specifying a variant of the CPU, for example `v7` to
5180+ specify ARMv7 when architecture is `arm`.
5181+ type : " string"
5182+ example : " v7"
5183+
5184+ DistributionInspect :
5185+ type : " object"
5186+ x-go-name : DistributionInspect
5187+ title : " DistributionInspectResponse"
5188+ required : [Descriptor, Platforms]
5189+ description : |
5190+ Describes the result obtained from contacting the registry to retrieve
5191+ image metadata.
5192+ properties :
5193+ Descriptor :
5194+ $ref : " #/definitions/OCIDescriptor"
5195+ Platforms :
5196+ type : " array"
5197+ description : |
5198+ An array containing all platforms supported by the image.
5199+ items :
5200+ $ref : " #/definitions/OCIPlatform"
5201+
51055202paths :
51065203 /containers/json :
51075204 get :
@@ -11143,67 +11240,7 @@ paths:
1114311240 200 :
1114411241 description : " descriptor and platform information"
1114511242 schema :
11146- type : " object"
11147- x-go-name : DistributionInspect
11148- title : " DistributionInspectResponse"
11149- required : [Descriptor, Platforms]
11150- properties :
11151- Descriptor :
11152- type : " object"
11153- description : |
11154- A descriptor struct containing digest, media type, and size.
11155- properties :
11156- mediaType :
11157- type : " string"
11158- size :
11159- type : " integer"
11160- format : " int64"
11161- digest :
11162- type : " string"
11163- urls :
11164- type : " array"
11165- items :
11166- type : " string"
11167- Platforms :
11168- type : " array"
11169- description : |
11170- An array containing all platforms supported by the image.
11171- items :
11172- type : " object"
11173- properties :
11174- architecture :
11175- type : " string"
11176- os :
11177- type : " string"
11178- os.version :
11179- type : " string"
11180- os.features :
11181- type : " array"
11182- items :
11183- type : " string"
11184- variant :
11185- type : " string"
11186- Features :
11187- type : " array"
11188- items :
11189- type : " string"
11190- examples :
11191- application/json :
11192- Descriptor :
11193- MediaType : " application/vnd.docker.distribution.manifest.v2+json"
11194- Digest : " sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96"
11195- Size : 3987495
11196- URLs :
11197- - " "
11198- Platforms :
11199- - architecture : " amd64"
11200- os : " linux"
11201- os.version : " "
11202- os.features :
11203- - " "
11204- variant : " "
11205- Features :
11206- - " "
11243+ $ref : " #/definitions/DistributionInspect"
1120711244 401 :
1120811245 description : " Failed authentication or no image found"
1120911246 schema :
0 commit comments