@@ -5260,6 +5260,103 @@ definitions:
52605260 format : " int64"
52615261 example : 1629574695515050031
52625262
5263+ OCIDescriptor :
5264+ type : " object"
5265+ x-go-name : Descriptor
5266+ description : |
5267+ A descriptor struct containing digest, media type, and size, as defined in
5268+ the [OCI Content Descriptors Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/descriptor.md).
5269+ properties :
5270+ mediaType :
5271+ description : |
5272+ The media type of the object this schema refers to.
5273+ type : " string"
5274+ example : " application/vnd.docker.distribution.manifest.v2+json"
5275+ digest :
5276+ description : |
5277+ The digest of the targeted content.
5278+ type : " string"
5279+ example : " sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96"
5280+ size :
5281+ description : |
5282+ The size in bytes of the blob.
5283+ type : " integer"
5284+ format : " int64"
5285+ example : 3987495
5286+ # TODO Not yet including these fields for now, as they are nil / omitted in our response.
5287+ # urls:
5288+ # description: |
5289+ # List of URLs from which this object MAY be downloaded.
5290+ # type: "array"
5291+ # items:
5292+ # type: "string"
5293+ # format: "uri"
5294+ # annotations:
5295+ # description: |
5296+ # Arbitrary metadata relating to the targeted content.
5297+ # type: "object"
5298+ # additionalProperties:
5299+ # type: "string"
5300+ # platform:
5301+ # $ref: "#/definitions/OCIPlatform"
5302+
5303+ OCIPlatform :
5304+ type : " object"
5305+ x-go-name : Platform
5306+ description : |
5307+ Describes the platform which the image in the manifest runs on, as defined
5308+ in the [OCI Image Index Specification](https://github.com/opencontainers/image-spec/blob/v1.0.1/image-index.md).
5309+ properties :
5310+ architecture :
5311+ description : |
5312+ The CPU architecture, for example `amd64` or `ppc64`.
5313+ type : " string"
5314+ example : " arm"
5315+ os :
5316+ description : |
5317+ The operating system, for example `linux` or `windows`.
5318+ type : " string"
5319+ example : " windows"
5320+ os.version :
5321+ description : |
5322+ Optional field specifying the operating system version, for example on
5323+ Windows `10.0.19041.1165`.
5324+ type : " string"
5325+ example : " 10.0.19041.1165"
5326+ os.features :
5327+ description : |
5328+ Optional field specifying an array of strings, each listing a required
5329+ OS feature (for example on Windows `win32k`).
5330+ type : " array"
5331+ items :
5332+ type : " string"
5333+ example :
5334+ - " win32k"
5335+ variant :
5336+ description : |
5337+ Optional field specifying a variant of the CPU, for example `v7` to
5338+ specify ARMv7 when architecture is `arm`.
5339+ type : " string"
5340+ example : " v7"
5341+
5342+ DistributionInspect :
5343+ type : " object"
5344+ x-go-name : DistributionInspect
5345+ title : " DistributionInspectResponse"
5346+ required : [Descriptor, Platforms]
5347+ description : |
5348+ Describes the result obtained from contacting the registry to retrieve
5349+ image metadata.
5350+ properties :
5351+ Descriptor :
5352+ $ref : " #/definitions/OCIDescriptor"
5353+ Platforms :
5354+ type : " array"
5355+ description : |
5356+ An array containing all platforms supported by the image.
5357+ items :
5358+ $ref : " #/definitions/OCIPlatform"
5359+
52635360paths :
52645361 /containers/json :
52655362 get :
@@ -11318,67 +11415,7 @@ paths:
1131811415 200 :
1131911416 description : " descriptor and platform information"
1132011417 schema :
11321- type : " object"
11322- x-go-name : DistributionInspect
11323- title : " DistributionInspectResponse"
11324- required : [Descriptor, Platforms]
11325- properties :
11326- Descriptor :
11327- type : " object"
11328- description : |
11329- A descriptor struct containing digest, media type, and size.
11330- properties :
11331- mediaType :
11332- type : " string"
11333- size :
11334- type : " integer"
11335- format : " int64"
11336- digest :
11337- type : " string"
11338- urls :
11339- type : " array"
11340- items :
11341- type : " string"
11342- Platforms :
11343- type : " array"
11344- description : |
11345- An array containing all platforms supported by the image.
11346- items :
11347- type : " object"
11348- properties :
11349- architecture :
11350- type : " string"
11351- os :
11352- type : " string"
11353- os.version :
11354- type : " string"
11355- os.features :
11356- type : " array"
11357- items :
11358- type : " string"
11359- variant :
11360- type : " string"
11361- Features :
11362- type : " array"
11363- items :
11364- type : " string"
11365- examples :
11366- application/json :
11367- Descriptor :
11368- MediaType : " application/vnd.docker.distribution.manifest.v2+json"
11369- Digest : " sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96"
11370- Size : 3987495
11371- URLs :
11372- - " "
11373- Platforms :
11374- - architecture : " amd64"
11375- os : " linux"
11376- os.version : " "
11377- os.features :
11378- - " "
11379- variant : " "
11380- Features :
11381- - " "
11418+ $ref : " #/definitions/DistributionInspect"
1138211419 401 :
1138311420 description : " Failed authentication or no image found"
1138411421 schema :
0 commit comments