blob: 2a7e500dd9415e2cd69fe43a7915abde72cb5733 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
package network
import "net"
//go:generate go run ../generator/generator.go CreateOptions
// CreateOptions are optional options for creating networks
type CreateOptions struct {
// DisableDNS turns off use of DNSMasq for name resolution
// on the network
DisableDNS *bool
// Driver is the name of network driver
Driver *string
// Gateway of the network
Gateway *net.IP
// Internal turns off communication outside the networking
// being created
Internal *bool
// Labels are metadata that can be associated with the network
Labels map[string]string
// MacVLAN is the name of the macvlan network to associate with
MacVLAN *string
// Range is the CIDR description of leasable IP addresses
IPRange *net.IPNet `scheme:"range"`
// Subnet to use
Subnet *net.IPNet
// IPv6 means the network is ipv6 capable
IPv6 *bool
// Options are a mapping of driver options and values.
Options map[string]string
// Name of the network
Name *string
}
//go:generate go run ../generator/generator.go InspectOptions
// InspectOptions are optional options for inspecting networks
type InspectOptions struct {
}
//go:generate go run ../generator/generator.go RemoveOptions
// RemoveOptions are optional options for inspecting networks
type RemoveOptions struct {
// Force removes the network even if it is being used
Force *bool
}
//go:generate go run ../generator/generator.go ListOptions
// ListOptions are optional options for listing networks
type ListOptions struct {
// Filters are applied to the list of networks to be more
// specific on the output
Filters map[string][]string
}
//go:generate go run ../generator/generator.go DisconnectOptions
// DisconnectOptions are optional options for disconnecting
// containers from a network
type DisconnectOptions struct {
// Force indicates to remove the container from
// the network forcibly
Force *bool
}
//go:generate go run ../generator/generator.go ConnectOptions
// ConnectOptions are optional options for connecting
// containers from a network
type ConnectOptions struct {
// Aliases are names the container will be known as
// when using the dns plugin
Aliases *[]string
}
|