diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-05-20 07:16:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 07:16:35 -0400 |
commit | 916d8231c52eb89fae9982c63a956388fca648c2 (patch) | |
tree | 335652b32332e57e092a1bbf80914517190f136e /pkg/api/handlers/swagger/models.go | |
parent | 1916fe22a932183e0847e9f7b087f6ece4d7c48c (diff) | |
parent | 5b79cf15a0226dc3dad5053615ee652823376cd3 (diff) | |
download | podman-916d8231c52eb89fae9982c63a956388fca648c2.tar.gz podman-916d8231c52eb89fae9982c63a956388fca648c2.tar.bz2 podman-916d8231c52eb89fae9982c63a956388fca648c2.zip |
Merge pull request #14297 from jwhonce/wip/swagger
Swagger refactor/cleanup
Diffstat (limited to 'pkg/api/handlers/swagger/models.go')
-rw-r--r-- | pkg/api/handlers/swagger/models.go | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkg/api/handlers/swagger/models.go b/pkg/api/handlers/swagger/models.go new file mode 100644 index 000000000..a05e57dff --- /dev/null +++ b/pkg/api/handlers/swagger/models.go @@ -0,0 +1,46 @@ +//nolint:deadcode,unused // these types are used to wire generated swagger to API code +package swagger + +import ( + "github.com/containers/podman/v4/pkg/domain/entities" + "github.com/docker/docker/api/types" +) + +// Details for creating a volume +// swagger:model +type volumeCreate struct { + // Name of the volume driver to use. + // Required: true + Driver string `json:"Driver"` + + // A mapping of driver options and values. These options are + // passed directly to the driver and are driver specific. + // + // Required: true + DriverOpts map[string]string `json:"DriverOpts"` + + // User-defined key/value metadata. + // Required: true + Labels map[string]string `json:"Labels"` + + // The new volume's name. If not specified, Docker generates a name. + // + // Required: true + Name string `json:"Name"` +} + +// Network create +// swagger:model +type networkCreate types.NetworkCreateRequest + +// Network connect +// swagger:model +type networkConnectRequest types.NetworkConnect + +// Network disconnect +// swagger:model +type networkDisconnectRequest types.NetworkDisconnect + +// Network connect +// swagger:model +type networkConnectRequestLibpod entities.NetworkConnectOptions |