diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-02-04 12:48:13 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-02-10 12:36:45 +0100 |
commit | 76e2a0c5d3365205cb104280d41015d6ab25cd9a (patch) | |
tree | caaa958c7b9c09f283e7e4498fdd8c473403f32e /pkg/api/handlers/types.go | |
parent | ee811431d29962c3a801903ca3ca342a2000f65e (diff) | |
download | podman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.tar.gz podman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.tar.bz2 podman-76e2a0c5d3365205cb104280d41015d6ab25cd9a.zip |
v2 api: /libpod/images/pull
Implement the /libpod/images/pull endpoint and correct the swagger docs.
The reference parameter is mandatory and must either be a
c/image/docker/reference or a reference to the "docker://" transport as
the pull endpoint is meant to only support pulling images from a
registry.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/api/handlers/types.go')
-rw-r--r-- | pkg/api/handlers/types.go | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go index 6169adb18..c19397e60 100644 --- a/pkg/api/handlers/types.go +++ b/pkg/api/handlers/types.go @@ -33,6 +33,20 @@ type ContainerConfig struct { dockerContainer.Config } +type LibpodImagesLoadReport struct { + ID string `json:"id"` + RepoTags []string `json:"repoTags"` +} + +type LibpodImagesImportReport struct { + ID string `json:"id"` + RepoTags []string `json:"repoTags"` +} + +type LibpodImagesPullReport struct { + ID string `json:"id"` +} + type ImageSummary struct { docker.ImageSummary CreatedTime time.Time `json:"CreatedTime,omitempty"` @@ -49,21 +63,6 @@ type LibpodContainersPruneReport struct { PruneError string `json:"error"` } -type LibpodImagesLoadReport struct { - ID string `json:"id"` - RepoTags []string `json:"repoTags"` -} - -type LibpodImagesImportReport struct { - ID string `json:"id"` - RepoTags []string `json:"repoTags"` -} - -type LibpodImagesPullReport struct { - ID string `json:"id"` - RepoTags []string `json:"repoTags"` -} - type Info struct { docker.Info BuildahVersion string |