Skip to content

Commit ee21838

Browse files
committed
Update engine-api vendor for UsernsMode
Docker-DCO-1.1-Signed-off-by: Phil Estes <[email protected]> (github: estesp)
1 parent 15e68dc commit ee21838

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

hack/vendor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ clone git golang.org/x/net 47990a1ba55743e6ef1affd3a14e5bac8553615d https://gith
2424
clone git golang.org/x/sys eb2c74142fd19a79b3f237334c7384d5167b1b46 https://github.com/golang/sys.git
2525
clone git github.com/docker/go-units 651fc226e7441360384da338d0fd37f2440ffbe3
2626
clone git github.com/docker/go-connections v0.2.0
27-
clone git github.com/docker/engine-api 7108f731dd4aeede9a259d0b1a86f0b7d94f12c2
27+
clone git github.com/docker/engine-api 7f6071353fc48f69d2328c4ebe8f3bd0f7c75da4
2828
clone git github.com/RackSec/srslog 6eb773f331e46fbba8eecb8e794e635e75fc04de
2929
clone git github.com/imdario/mergo 0.2.1
3030

vendor/src/github.com/docker/engine-api/types/container/host_config.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ type LogConfig struct {
190190
type Resources struct {
191191
// Applicable to all platforms
192192
CPUShares int64 `json:"CpuShares"` // CPU shares (relative weight vs. other containers)
193+
Memory int64 // Memory limit (in bytes)
193194

194195
// Applicable to UNIX platforms
195196
CgroupParent string // Parent cgroup.
@@ -206,13 +207,17 @@ type Resources struct {
206207
Devices []DeviceMapping // List of devices to map inside the container
207208
DiskQuota int64 // Disk limit (in bytes)
208209
KernelMemory int64 // Kernel memory limit (in bytes)
209-
Memory int64 // Memory limit (in bytes)
210210
MemoryReservation int64 // Memory soft limit (in bytes)
211211
MemorySwap int64 // Total memory usage (memory + swap); set `-1` to enable unlimited swap
212212
MemorySwappiness *int64 // Tuning container memory swappiness behaviour
213213
OomKillDisable *bool // Whether to disable OOM Killer or not
214214
PidsLimit int64 // Setting pids limit for a container
215215
Ulimits []*units.Ulimit // List of ulimits to be set in the container
216+
217+
// Applicable to Windows
218+
BlkioIOps uint64 // Maximum IOps for the container system drive
219+
BlkioBps uint64 // Maximum Bytes per second for the container system drive
220+
SandboxSize uint64 // System drive will be expanded to at least this size (in bytes)
216221
}
217222

218223
// UpdateConfig holds the mutable attributes of a Container.
@@ -256,7 +261,9 @@ type HostConfig struct {
256261
StorageOpt []string // Storage driver options per container.
257262
Tmpfs map[string]string `json:",omitempty"` // List of tmpfs (mounts) used for the container
258263
UTSMode UTSMode // UTS namespace to use for the container
264+
UsernsMode UsernsMode // The user namespace to use for the container
259265
ShmSize int64 // Total shm memory usage
266+
Sysctls map[string]string `json:",omitempty"` // List of Namespaced sysctls used for the container
260267

261268
// Applicable to Windows
262269
ConsoleSize [2]int // Initial console size

vendor/src/github.com/docker/engine-api/types/container/hostconfig_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (n NetworkMode) NetworkName() string {
7979
return ""
8080
}
8181

82-
// ValidateIsolationperforms platform specific validation of the
82+
// ValidateIsolation performs platform specific validation of the
8383
// isolation technology in the hostconfig structure. Windows supports 'default' (or
8484
// blank), 'process', or 'hyperv'.
8585
func ValidateIsolation(hc *HostConfig) error {

0 commit comments

Comments
 (0)