summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/swagger.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-25 04:46:47 -0400
committerGitHub <noreply@github.com>2020-05-25 04:46:47 -0400
commit0b7b9748681845a76a23349c95edad62048b849b (patch)
tree88a7f4f5580ff691ee76b6305b6c42124592fd32 /pkg/api/handlers/compat/swagger.go
parentf51d18a10f30c0aa86fde4e1655b6aeb7b875b45 (diff)
parentc3af2faab2dde219b286800a34552523a1d3f9e3 (diff)
downloadpodman-0b7b9748681845a76a23349c95edad62048b849b.tar.gz
podman-0b7b9748681845a76a23349c95edad62048b849b.tar.bz2
podman-0b7b9748681845a76a23349c95edad62048b849b.zip
Merge pull request #6238 from baude/v2compatnet
network compatibility endpoints for API
Diffstat (limited to 'pkg/api/handlers/compat/swagger.go')
-rw-r--r--pkg/api/handlers/compat/swagger.go28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/swagger.go b/pkg/api/handlers/compat/swagger.go
index ce83aa32f..dc94a7ebd 100644
--- a/pkg/api/handlers/compat/swagger.go
+++ b/pkg/api/handlers/compat/swagger.go
@@ -3,6 +3,7 @@ package compat
import (
"github.com/containers/libpod/pkg/domain/entities"
"github.com/containers/storage/pkg/archive"
+ "github.com/docker/docker/api/types"
)
// Create container
@@ -35,3 +36,30 @@ type swagChangesResponse struct {
Changes []archive.Change
}
}
+
+// Network inspect
+// swagger:response CompatNetworkInspect
+type swagCompatNetworkInspect struct {
+ // in:body
+ Body types.NetworkResource
+}
+
+// Network list
+// swagger:response CompatNetworkList
+type swagCompatNetworkList struct {
+ // in:body
+ Body []types.NetworkResource
+}
+
+// Network create
+// swagger:model NetworkCreateRequest
+type NetworkCreateRequest struct {
+ types.NetworkCreateRequest
+}
+
+// Network create
+// swagger:response CompatNetworkCreate
+type swagCompatNetworkCreateResponse struct {
+ // in:body
+ Body struct{ types.NetworkCreate }
+}