Network represents a logical connectivity zone that containers may join using the Link method. A network is managed by a specific driver.
| 201 | // Network represents a logical connectivity zone that containers may |
| 202 | // join using the Link method. A network is managed by a specific driver. |
| 203 | type Network struct { |
| 204 | ctrlr *Controller |
| 205 | name string |
| 206 | networkType string // networkType is the name of the netdriver used by this network |
| 207 | id string |
| 208 | created time.Time |
| 209 | scope string // network data scope |
| 210 | labels map[string]string |
| 211 | ipamType string // ipamType is the name of the IPAM driver |
| 212 | ipamOptions map[string]string |
| 213 | addrSpace string |
| 214 | ipamV4Config []*IpamConf |
| 215 | ipamV6Config []*IpamConf |
| 216 | ipamV4Info []*IpamInfo |
| 217 | ipamV6Info []*IpamInfo |
| 218 | enableIPv4 bool |
| 219 | enableIPv6 bool |
| 220 | generic options.Generic |
| 221 | dbIndex uint64 |
| 222 | dbExists bool |
| 223 | persist bool |
| 224 | drvOnce *sync.Once |
| 225 | resolver []*Resolver |
| 226 | internal bool |
| 227 | attachable bool |
| 228 | inDelete bool |
| 229 | ingress bool |
| 230 | driverTables []networkDBTable |
| 231 | dynamic bool |
| 232 | configOnly bool |
| 233 | configFrom string |
| 234 | loadBalancerIP net.IP |
| 235 | loadBalancerMode string |
| 236 | skipGwAllocIPv4 bool |
| 237 | skipGwAllocIPv6 bool |
| 238 | platformNetwork //nolint:nolintlint,unused // only populated on windows |
| 239 | mu sync.Mutex |
| 240 | } |
| 241 | |
| 242 | const ( |
| 243 | loadBalancerModeNAT = "NAT" |
nothing calls this directly
no outgoing calls
no test coverage detected