-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
models.go
50 lines (40 loc) · 1.21 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//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"
)
// 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
// Network update
// swagger:model
type networkUpdateRequestLibpod entities.NetworkUpdateOptions