Skip to content

Commit 342e6bb

Browse files
committed
Merge pull request moby#17581 from Microsoft/10662-factoroutexecuser
Windows: Factor out user in execdriver\driver
2 parents bf5a6d2 + 910e4ba commit 342e6bb

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

daemon/execdriver/driver.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ type ResourceStats struct {
121121
SystemUsage uint64 `json:"system_usage"`
122122
}
123123

124-
// User contains the uid and gid representing a Unix user
125-
// TODO Windows: Factor out User
126-
type User struct {
127-
UID int `json:"root_uid"`
128-
GID int `json:"root_gid"`
129-
}
130-
131124
// ProcessConfig describes a process that will be run inside a container.
132125
type ProcessConfig struct {
133126
exec.Cmd `json:"-"`

daemon/execdriver/driver_unix.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,9 @@ func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64)
256256
MemoryLimit: memoryLimit,
257257
}, nil
258258
}
259+
260+
// User contains the uid and gid representing a Unix user
261+
type User struct {
262+
UID int `json:"root_uid"`
263+
GID int `json:"root_gid"`
264+
}

0 commit comments

Comments
 (0)