2019-12-11 17:07:24 -05:00
|
|
|
definitions:
|
2022-02-24 15:31:36 -05:00
|
|
|
api.ExtensionList:
|
|
|
|
type: object
|
2019-12-11 17:07:24 -05:00
|
|
|
api.ImageManifest:
|
|
|
|
type: object
|
|
|
|
api.ImageTags:
|
|
|
|
properties:
|
|
|
|
name:
|
|
|
|
type: string
|
|
|
|
tags:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
api.RepositoryList:
|
|
|
|
properties:
|
|
|
|
repositories:
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
type: array
|
|
|
|
type: object
|
|
|
|
info:
|
|
|
|
contact:
|
|
|
|
email: support@swagger.io
|
|
|
|
name: API Support
|
|
|
|
url: http://www.swagger.io/support
|
|
|
|
description: APIs for Open Container Initiative Distribution Specification
|
|
|
|
license:
|
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
title: Open Container Initiative Distribution Specification
|
2023-01-31 12:35:33 -05:00
|
|
|
version: v1.1.0-dev
|
2019-12-11 17:07:24 -05:00
|
|
|
paths:
|
2022-02-24 15:31:36 -05:00
|
|
|
/oras/artifacts/v1/{name:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get references for an image given a digest and artifact type
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: artifact type
|
|
|
|
in: query
|
|
|
|
name: artifactType
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get references for an image
|
2019-12-11 17:07:24 -05:00
|
|
|
/v2/:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check if this API version is supported
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
2022-02-24 15:31:36 -05:00
|
|
|
description: ok".
|
2019-12-11 17:07:24 -05:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Check API support
|
|
|
|
/v2/_catalog:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all image repositories
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.RepositoryList'
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: List image repositories
|
2022-02-24 15:31:36 -05:00
|
|
|
/v2/_oci/ext/discover:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all extensions present on registry
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ExtensionList'
|
|
|
|
summary: List Registry level extensions
|
2019-12-11 17:07:24 -05:00
|
|
|
/v2/{name}/blobs/{digest}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image blob/layer
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/vnd.oci.image.layer.v1.tar+gzip
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
summary: Get image blob/layer
|
|
|
|
head:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: path
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
2022-02-24 15:31:36 -05:00
|
|
|
constants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
description: OK
|
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
summary: Check image blob/layer
|
|
|
|
/v2/{name}/blobs/uploads:
|
|
|
|
post:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Create a new image blob/layer upload
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
headers:
|
|
|
|
Location:
|
2022-02-24 15:31:36 -05:00
|
|
|
description: /v2/{name}/blobs/uploads/{session_id}
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
Range:
|
2022-06-29 03:12:20 -05:00
|
|
|
description: 0-0
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Create image blob/layer upload
|
2022-02-24 15:31:36 -05:00
|
|
|
/v2/{name}/blobs/uploads/{session_id}:
|
2019-12-11 17:07:24 -05:00
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's blob/layer given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image blob/layer
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2022-02-24 15:31:36 -05:00
|
|
|
description: Get an image's blob/layer upload given a session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: no content
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get image blob/layer upload
|
|
|
|
patch:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
2022-02-24 15:31:36 -05:00
|
|
|
description: Resume an image's blob/layer upload given an session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"202":
|
|
|
|
description: accepted
|
|
|
|
headers:
|
|
|
|
Location:
|
2022-02-24 15:31:36 -05:00
|
|
|
description: /v2/{name}/blobs/uploads/{session_id}
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
Range:
|
2022-06-29 03:12:20 -05:00
|
|
|
description: 0-128
|
2019-12-11 17:07:24 -05:00
|
|
|
type: string
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"416":
|
|
|
|
description: range not satisfiable
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Resume image blob/layer upload
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update and finish an image's blob/layer upload given a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: upload session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
in: path
|
2022-02-24 15:31:36 -05:00
|
|
|
name: session_id
|
2019-12-11 17:07:24 -05:00
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: blob/layer digest
|
|
|
|
in: query
|
|
|
|
name: digest
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: created
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Update image blob/layer upload
|
|
|
|
/v2/{name}/manifests/{reference}:
|
|
|
|
delete:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Delete an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Delete image manifest
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Get an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/vnd.oci.image.manifest.v1+json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
headers:
|
2022-02-24 15:31:36 -05:00
|
|
|
constants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
description: OK
|
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageManifest'
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Get image manifest
|
|
|
|
head:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Check an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: ok
|
|
|
|
headers:
|
2022-02-24 15:31:36 -05:00
|
|
|
cosntants.DistContentDigestKey:
|
2019-12-11 17:07:24 -05:00
|
|
|
description: OK
|
|
|
|
type: object
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
2022-02-24 15:31:36 -05:00
|
|
|
description: internal server error".
|
2019-12-11 17:07:24 -05:00
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Check image manifest
|
|
|
|
put:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: Update an image's manifest given a reference or a digest
|
|
|
|
parameters:
|
|
|
|
- description: repository name
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
- description: image reference or digest
|
|
|
|
in: path
|
|
|
|
name: reference
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"201":
|
|
|
|
description: created
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"400":
|
|
|
|
description: bad request
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
"500":
|
|
|
|
description: internal server error
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: Update image manifest
|
|
|
|
/v2/{name}/tags/list:
|
|
|
|
get:
|
|
|
|
consumes:
|
|
|
|
- application/json
|
|
|
|
description: List all image tags in a repository
|
|
|
|
parameters:
|
|
|
|
- description: test
|
|
|
|
in: path
|
|
|
|
name: name
|
|
|
|
required: true
|
|
|
|
type: string
|
2022-02-24 15:31:36 -05:00
|
|
|
- description: limit entries for pagination
|
|
|
|
in: query
|
|
|
|
name: "n"
|
|
|
|
required: true
|
|
|
|
type: integer
|
|
|
|
- description: last tag value for pagination
|
|
|
|
in: query
|
|
|
|
name: last
|
|
|
|
required: true
|
|
|
|
type: string
|
2019-12-11 17:07:24 -05:00
|
|
|
produces:
|
|
|
|
- application/json
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/api.ImageTags'
|
2022-02-24 15:31:36 -05:00
|
|
|
"400":
|
|
|
|
description: bad request".
|
|
|
|
schema:
|
|
|
|
type: string
|
2019-12-11 17:07:24 -05:00
|
|
|
"404":
|
|
|
|
description: not found
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
summary: List image tags
|
|
|
|
swagger: "2.0"
|