summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/swagger/swagger.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-05-17 09:30:38 -0700
committerJhon Honce <jhonce@redhat.com>2021-05-21 09:50:58 -0700
commit8bf852d5f0e5d3b22da2a7401d37d1ef3475065f (patch)
tree48bf4d1c69a9cdfa12f603c74166b77d54bf30dd /pkg/api/handlers/swagger/swagger.go
parent6a6ef402c3c8e14a621a98a4029255e3be41d5ef (diff)
downloadpodman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.tar.gz
podman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.tar.bz2
podman-8bf852d5f0e5d3b22da2a7401d37d1ef3475065f.zip
Match swagger to "as built" output
* Remove all Types no longer referenced, they were never used A future API breaking version of Podman API, may restore these Types and push formatting into presentation layer vs. server. Fixes #9578 Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/handlers/swagger/swagger.go')
-rw-r--r--pkg/api/handlers/swagger/swagger.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/api/handlers/swagger/swagger.go b/pkg/api/handlers/swagger/swagger.go
index ef3d12df8..83ff5914e 100644
--- a/pkg/api/handlers/swagger/swagger.go
+++ b/pkg/api/handlers/swagger/swagger.go
@@ -8,6 +8,15 @@ import (
"github.com/docker/docker/api/types"
)
+// Tree response
+// swagger:response TreeResponse
+type swagTree struct {
+ // in:body
+ Body struct {
+ entities.ImageTreeReport
+ }
+}
+
// History response
// swagger:response DocsHistory
type swagHistory struct {
@@ -183,12 +192,3 @@ type swagInspectVolumeResponse struct {
define.InspectVolumeData
}
}
-
-// Image tree response
-// swagger:response LibpodImageTreeResponse
-type swagImageTreeResponse struct {
- // in:body
- Body struct {
- handlers.ImageTreeResponse
- }
-}