diff options
author | cdoern <cbdoer23@g.holycross.edu> | 2021-06-01 18:05:18 -0400 |
---|---|---|
committer | cdoern <cbdoer23@g.holycross.edu> | 2021-06-04 09:50:42 -0400 |
commit | ce01b4f095f6d1a55952e03f919ba73d4c9d8eae (patch) | |
tree | 3f45532b845e03a8af82e9e55b4edded58f0cdc5 /pkg/api/server/register_images.go | |
parent | 2cc4535e1fb8d6a18a4992e395ace21fefe22efe (diff) | |
download | podman-ce01b4f095f6d1a55952e03f919ba73d4c9d8eae.tar.gz podman-ce01b4f095f6d1a55952e03f919ba73d4c9d8eae.tar.bz2 podman-ce01b4f095f6d1a55952e03f919ba73d4c9d8eae.zip |
made requested changes, fixed api tests
Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 20 |
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: |