mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
d795bc7d53
- So that it complies with docker convention for inspect Signed-off-by: Alessandro Boch <aboch@docker.com>
51 lines
1.3 KiB
Go
51 lines
1.3 KiB
Go
package network
|
|
|
|
import "github.com/docker/docker/pkg/nat"
|
|
|
|
// Address represents an IP address
|
|
type Address struct {
|
|
Addr string
|
|
PrefixLen int
|
|
}
|
|
|
|
// IPAM represents IP Address Management
|
|
type IPAM struct {
|
|
Driver string
|
|
Config []IPAMConfig
|
|
}
|
|
|
|
// IPAMConfig represents IPAM configurations
|
|
type IPAMConfig struct {
|
|
Subnet string `json:",omitempty"`
|
|
IPRange string `json:",omitempty"`
|
|
Gateway string `json:",omitempty"`
|
|
AuxAddress map[string]string `json:"AuxiliaryAddresses,omitempty"`
|
|
}
|
|
|
|
// Settings stores configuration details about the daemon network config
|
|
// TODO Windows. Many of these fields can be factored out.,
|
|
type Settings struct {
|
|
Bridge string
|
|
SandboxID string
|
|
HairpinMode bool
|
|
LinkLocalIPv6Address string
|
|
LinkLocalIPv6PrefixLen int
|
|
Networks map[string]*EndpointSettings
|
|
Ports nat.PortMap
|
|
SandboxKey string
|
|
SecondaryIPAddresses []Address
|
|
SecondaryIPv6Addresses []Address
|
|
IsAnonymousEndpoint bool
|
|
}
|
|
|
|
// EndpointSettings stores the network endpoint details
|
|
type EndpointSettings struct {
|
|
EndpointID string
|
|
Gateway string
|
|
IPAddress string
|
|
IPPrefixLen int
|
|
IPv6Gateway string
|
|
GlobalIPv6Address string
|
|
GlobalIPv6PrefixLen int
|
|
MacAddress string
|
|
}
|