diff options
author | Brent Baude <bbaude@redhat.com> | 2020-05-12 13:04:10 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-05-12 13:23:43 -0500 |
commit | cf502b99feda401ced410fbcfd1a3a2663c7a559 (patch) | |
tree | 408c4ae509fc8563da7ae1ac3f8d141cfd96e695 /pkg/api/handlers/libpod/swagger.go | |
parent | 5b4e91db73a80f31f67b7c28832527e64b074b74 (diff) | |
download | podman-cf502b99feda401ced410fbcfd1a3a2663c7a559.tar.gz podman-cf502b99feda401ced410fbcfd1a3a2663c7a559.tar.bz2 podman-cf502b99feda401ced410fbcfd1a3a2663c7a559.zip |
enable podman v2 networking for remote client
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod/swagger.go')
-rw-r--r-- | pkg/api/handlers/libpod/swagger.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/api/handlers/libpod/swagger.go b/pkg/api/handlers/libpod/swagger.go index 46426eb6b..057fbfb41 100644 --- a/pkg/api/handlers/libpod/swagger.go +++ b/pkg/api/handlers/libpod/swagger.go @@ -91,6 +91,34 @@ type swagInfoResponse struct { Body define.Info } +// Network rm +// swagger:response NetworkRmReport +type swagNetworkRmReport struct { + // in:body + Body entities.NetworkRmReport +} + +// Network inspect +// swagger:response NetworkInspectReport +type swagNetworkInspectReport struct { + // in:body + Body []entities.NetworkInspectReport +} + +// Network list +// swagger:response NetworkListReport +type swagNetworkListReport struct { + // in:body + Body []entities.NetworkListReport +} + +// Network create +// swagger:response NetworkCreateReport +type swagNetworkCreateReport struct { + // in:body + Body entities.NetworkCreateReport +} + func ServeSwagger(w http.ResponseWriter, r *http.Request) { path := DefaultPodmanSwaggerSpec if p, found := os.LookupEnv("PODMAN_SWAGGER_SPEC"); found { |