diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-03-18 12:17:11 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-03-19 09:25:12 -0700 |
commit | 417f36281129434cfa57fcaffb7f10b28b36e2e6 (patch) | |
tree | 90be7fc3ea5a614dcc889ade4477ec6483b91a89 /pkg/api/server/register_images.go | |
parent | 5325957d536be3515fb7a782e4755afca38fca4c (diff) | |
download | podman-417f36281129434cfa57fcaffb7f10b28b36e2e6.tar.gz podman-417f36281129434cfa57fcaffb7f10b28b36e2e6.tar.bz2 podman-417f36281129434cfa57fcaffb7f10b28b36e2e6.zip |
Cleanup /libpod/images/load handler
* Remove orphaned code
* Add meaningful error from LoadImageFromSingleImageArchive() when
heuristic fails to determine payload format
* Correct swagger to output correct types and headers
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index 3d86e5d38..423766bd8 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -810,11 +810,14 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // summary: Load image // description: Load an image (oci-archive or docker-archive) stream. // parameters: - // - in: formData + // - in: body // name: upload - // description: tarball of container image - // type: file // required: true + // description: tarball of container image + // schema: + // type: string + // consumes: + // - application/x-tar // produces: // - application/json // responses: |