diff options
author | Brent Baude <bbaude@redhat.com> | 2020-05-13 14:24:59 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-05-22 13:48:52 -0500 |
commit | c3af2faab2dde219b286800a34552523a1d3f9e3 (patch) | |
tree | a9b1d4fbb6ad7c38bb43aa5a4cbea9d43eb935df /pkg/api/handlers/compat/swagger.go | |
parent | a6ee8bf2afccddcf8eb5d93e135e5b8b9e750259 (diff) | |
download | podman-c3af2faab2dde219b286800a34552523a1d3f9e3.tar.gz podman-c3af2faab2dde219b286800a34552523a1d3f9e3.tar.bz2 podman-c3af2faab2dde219b286800a34552523a1d3f9e3.zip |
network compatibility endpoints for API
add endpoints for networking compatibility with the API.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat/swagger.go')
-rw-r--r-- | pkg/api/handlers/compat/swagger.go | 28 |
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 } +} |