diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-27 23:24:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 23:24:00 +0100 |
commit | 52876dc821a1a97df2ffb7388439662c45e490a3 (patch) | |
tree | 53e92d9d41921e7871947164a2ca45707e30c784 /pkg/api/server/swagger.go | |
parent | be2e5c4b2dd9b8d0c80593f9c6f2f0d15bf7e430 (diff) | |
parent | 306b44380fec7a6653baf8fa8e2929a8f0115659 (diff) | |
download | podman-52876dc821a1a97df2ffb7388439662c45e490a3.tar.gz podman-52876dc821a1a97df2ffb7388439662c45e490a3.tar.bz2 podman-52876dc821a1a97df2ffb7388439662c45e490a3.zip |
Merge pull request #5319 from baude/apiv2volumestests
binding tests for volumes
Diffstat (limited to 'pkg/api/server/swagger.go')
-rw-r--r-- | pkg/api/server/swagger.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/api/server/swagger.go b/pkg/api/server/swagger.go index fc409d816..011196e5a 100644 --- a/pkg/api/server/swagger.go +++ b/pkg/api/server/swagger.go @@ -1,6 +1,7 @@ package server import ( + "github.com/containers/libpod/libpod" "github.com/containers/libpod/pkg/api/handlers" "github.com/containers/libpod/pkg/api/handlers/utils" ) @@ -139,3 +140,19 @@ type ok struct { ok string } } + +// Volume create response +// swagger:response VolumeCreateResponse +type swagVolumeCreateResponse struct { + // in:body + Body struct { + libpod.VolumeConfig + } +} + +// Volume list +// swagger:response VolumeList +type swagVolumeListResponse struct { + // in:body + Body []libpod.Volume +} |