Browse code

Merge pull request #17581 from Microsoft/10662-factoroutexecuser

Windows: Factor out user in execdriver\driver

Brian Goff authored on 2015/11/08 12:11:26
Showing 2 changed files
... ...
@@ -121,13 +121,6 @@ type ResourceStats struct {
121 121
 	SystemUsage uint64    `json:"system_usage"`
122 122
 }
123 123
 
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
-
131 124
 // ProcessConfig describes a process that will be run inside a container.
132 125
 type ProcessConfig struct {
133 126
 	exec.Cmd `json:"-"`
... ...
@@ -256,3 +256,9 @@ func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64)
256 256
 		MemoryLimit: memoryLimit,
257 257
 	}, nil
258 258
 }
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
+}