mirror of
https://github.com/containers/podman.git
synced 2025-10-31 01:50:50 +08:00
Fixes compile issues with new docker changes, then fix all the new depreciation warnings. Also there seem to be larger pre-existing problems with the /containers/json API output as the HostConfig field seems to be missing but I don't have time to deal with that currently. Note this does not include changes for the new docker API 1.46. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
56 lines
1.4 KiB
Go
56 lines
1.4 KiB
Go
//nolint:unused // these types are used to wire generated swagger to API code
|
|
package swagger
|
|
|
|
import (
|
|
"github.com/containers/podman/v5/pkg/domain/entities"
|
|
"github.com/docker/docker/api/types/container"
|
|
"github.com/docker/docker/api/types/network"
|
|
)
|
|
|
|
// 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 network.CreateRequest
|
|
|
|
// Network connect
|
|
// swagger:model
|
|
type networkConnectRequest network.ConnectOptions
|
|
|
|
// Network disconnect
|
|
// swagger:model
|
|
type networkDisconnectRequest network.DisconnectOptions
|
|
|
|
// Network connect
|
|
// swagger:model
|
|
type networkConnectRequestLibpod entities.NetworkConnectOptions
|
|
|
|
// Network update
|
|
// swagger:model
|
|
type networkUpdateRequestLibpod entities.NetworkUpdateOptions
|
|
|
|
// Container update
|
|
// swagger:model
|
|
type containerUpdateRequest container.UpdateConfig
|