Skip to content

Commit

Permalink
Update to Windows network options
Browse files Browse the repository at this point in the history
Signed-off-by: Darren Stahl <[email protected]>
  • Loading branch information
darstahl committed May 10, 2017
1 parent 844f392 commit 871db6a
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ type SolarisAnet struct {
type Windows struct {
// Resources contains information for handling resource constraints for the container.
Resources *WindowsResources `json:"resources,omitempty"`
// Network restriction configuration.
Network *WindowsNetwork `json:"network,omitempty"`
}

// WindowsResources has container runtime resource constraints for containers running on Windows.
Expand All @@ -442,8 +444,6 @@ type WindowsResources struct {
CPU *WindowsCPUResources `json:"cpu,omitempty"`
// Storage restriction configuration.
Storage *WindowsStorageResources `json:"storage,omitempty"`
// Network restriction configuration.
Network *WindowsNetworkResources `json:"network,omitempty"`
}

// WindowsMemoryResources contains memory resource management settings.
Expand Down Expand Up @@ -472,10 +472,16 @@ type WindowsStorageResources struct {
SandboxSize *uint64 `json:"sandboxSize,omitempty"`
}

// WindowsNetworkResources contains network resource management settings.
type WindowsNetworkResources struct {
// EgressBandwidth is the maximum egress bandwidth in bytes per second.
EgressBandwidth *uint64 `json:"egressBandwidth,omitempty"`
// WindowsNetwork contains network settings for Windows containers.
type WindowsNetwork struct {
// List of HNS endpoints that the container should connect to.
EndpointList []string `json:"endpointList,omitempty"`
// Specifies if unqualified DNS name resolution is allowed.
AllowUnqualifiedDNSQuery bool `json:"allowUnqualifiedDNSQuery,omitempty"`
// Comma seperated list of DNS suffixes to use for name resolution.
DNSSearchList []string `json:"DNSSearchList,omitempty"`
// Name (ID) of the container that we will share with the network stack.
NetworkSharedContainerName string `json:"networkSharedContainerName,omitempty"`
}

// LinuxSeccomp represents syscall restrictions
Expand Down

0 comments on commit 871db6a

Please sign in to comment.