diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-10 11:46:06 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-10 13:18:50 +0100 |
commit | 185c82bc80705266f4dc2411d31fb1cb461f89c2 (patch) | |
tree | 4040b41404a2231091d55f8bb3458a2d0e0a0f5a /pkg/api/server/register_images.go | |
parent | 926c9f8fbbff6332be4ba97d96ba95a9f09b7f65 (diff) | |
download | podman-185c82bc80705266f4dc2411d31fb1cb461f89c2.tar.gz podman-185c82bc80705266f4dc2411d31fb1cb461f89c2.tar.bz2 podman-185c82bc80705266f4dc2411d31fb1cb461f89c2.zip |
v2 api: /libpod/images/import
Implement the /libpod/images/import endpoint
Tested manually with curl:
curl -X POST --data-binary "@image.tar" --header "Content-Type: application/x-tar"
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index 631d8bde2..8de584b86 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -665,17 +665,23 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // description: Import a previously exported tarball as an image. // parameters: // - in: query - // name: change - // description: "Apply the following possible instructions to the created image (default []): CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR. JSON encoded string" - // type: string + // name: changes + // description: "Apply the following possible instructions to the created image: CMD | ENTRYPOINT | ENV | EXPOSE | LABEL | STOPSIGNAL | USER | VOLUME | WORKDIR. JSON encoded string" + // type: array + // items: + // type: string // - in: query // name: message // description: Set commit message for imported image // type: string // - in: query + // name: change + // description: "Optional Name[:TAG] for the image" + // type: reference + // - in: query // name: url - // description: Specify a URL instead of a tarball - // type: boolean + // description: Load image from the specified URL + // type: string // - in: formData // name: upload // type: file |