summaryrefslogtreecommitdiff
path: root/pkg/api/server
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-08 17:44:02 +0200
committerGitHub <noreply@github.com>2021-06-08 17:44:02 +0200
commit5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f (patch)
tree1ec7629d9dbedc21301a383f3704e8f1bebc57d0 /pkg/api/server
parent5824f06d4b3ad4359a076be57192c523eb1c695d (diff)
parentce01b4f095f6d1a55952e03f919ba73d4c9d8eae (diff)
downloadpodman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.tar.gz
podman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.tar.bz2
podman-5d96b8e7d6dbf1f6f4eb6fed5f8f6142541fef7f.zip
Merge pull request #10548 from cdoern/imgFeature
API images/create added missing parameters platform, message, repo
Diffstat (limited to 'pkg/api/server')
-rw-r--r--pkg/api/server/register_images.go20
1 files changed, 17 insertions, 3 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 9634bd83b..b28818768 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -28,15 +28,28 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// - in: query
// name: fromImage
// type: string
- // description: needs description
+ // description: Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed.
// - in: query
// name: fromSrc
// type: string
- // description: needs description
+ // description: Source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body. This parameter may only be used when importing an image
+ // - in: query
+ // name: repo
+ // type: string
+ // description: Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image.
// - in: query
// name: tag
// type: string
- // description: needs description
+ // description: Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.
+ // - in: query
+ // name: message
+ // type: string
+ // description: Set commit message for imported image.
+ // - in: query
+ // name: platform
+ // type: string
+ // description: Platform in the format os[/arch[/variant]]
+ // default: ""
// - in: header
// name: X-Registry-Auth
// type: string
@@ -45,6 +58,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// name: request
// schema:
// type: string
+ // format: binary
// description: Image content if fromSrc parameter was used
// responses:
// 200: