summaryrefslogtreecommitdiff
path: root/pkg/api/server/swagger.go
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-11-01 22:30:57 +0100
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commita8332f69460f687d704cd804673b0ccca8fd5403 (patch)
tree8c7904a3ca6fb2d9322166eadb305ef541b6fa33 /pkg/api/server/swagger.go
parent5889c2c241e7ff3d2f26fb5e6e6e431b52b4e121 (diff)
downloadpodman-a8332f69460f687d704cd804673b0ccca8fd5403.tar.gz
podman-a8332f69460f687d704cd804673b0ccca8fd5403.tar.bz2
podman-a8332f69460f687d704cd804673b0ccca8fd5403.zip
Fix swagger definitions
[NO TESTS NEEDED] Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'pkg/api/server/swagger.go')
-rw-r--r--pkg/api/server/swagger.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkg/api/server/swagger.go b/pkg/api/server/swagger.go
index 0fd66652e..3f8f6f9c5 100644
--- a/pkg/api/server/swagger.go
+++ b/pkg/api/server/swagger.go
@@ -6,6 +6,7 @@ import (
"github.com/containers/podman/v3/pkg/domain/entities"
"github.com/containers/podman/v3/pkg/domain/entities/reports"
"github.com/containers/podman/v3/pkg/errorhandling"
+ docker "github.com/docker/docker/api/types"
)
// No such image
@@ -134,9 +135,16 @@ type swagPodAlreadyStopped struct {
}
}
-// Image summary
-// swagger:response DockerImageSummary
-type swagImageSummary struct {
+// Image summary for compat API
+// swagger:response DockerImageSummaryResponse
+type swagDockerImageSummaryResponse struct {
+ // in:body
+ Body []docker.ImageSummary
+}
+
+// Image summary for libpod API
+// swagger:response LibpodImageSummaryResponse
+type swagLibpodImageSummaryResponse struct {
// in:body
Body []entities.ImageSummary
}