diff --git a/types.go b/types.go index 95dcb42..34c5c6d 100644 --- a/types.go +++ b/types.go @@ -60,7 +60,7 @@ type HostConfig struct { CpuQuota int64 BlkioWeight int64 OomKillDisable bool - MemorySwappiness int64 + MemorySwappiness *int64 Privileged bool PortBindings map[string][]PortBinding Links []string @@ -233,6 +233,7 @@ type ContainerInfo struct { Gateway string Bridge string Ports map[string][]PortBinding + Networks map[string]*EndpointSettings } SysInitPath string ResolvConfPath string @@ -502,6 +503,7 @@ type NetworkResource struct { Driver string IPAM IPAM Containers map[string]EndpointResource + Options map[string]string } //EndpointResource contains network resources allocated and usd for a container in a network @@ -536,3 +538,15 @@ type NetworkConnect struct { type NetworkDisconnect struct { Container string } + +// 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 +}