Files
Paul Holzinger 942f789a88 set !remote build tags where needed
The new golangci-lint version 1.60.1 has problems with typecheck when
linting remote files. We have certain pakcages that should never be
inlcuded in remote but the typecheck tries to compile all of them but
this never works and it seems to ignore the exclude files we gave it.

To fix this the proper way is to mark all packages we only use locally
with !remote tags. This is a bit ugly but more correct. I also moved the
DecodeChanges() code around as it is called from the client so the
handles package which should only be remote doesn't really fit anyway.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-08-19 11:41:28 +02:00

58 lines
1.4 KiB
Go

//go:build !remote
//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