Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

add various missing fields and fix wrong type #191

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -233,6 +233,7 @@ type ContainerInfo struct {
Gateway string
Bridge string
Ports map[string][]PortBinding
Networks map[string]*EndpointSettings
}
SysInitPath string
ResolvConfPath string
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}