Browse code

Windows: Factor out user in execdriver\driver

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2015/11/01 11:19:24
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:"-"`
... ...
@@ -257,3 +257,9 @@ func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64)
257 257
 		MemoryLimit: memoryLimit,
258 258
 	}, nil
259 259
 }
260
+
261
+// User contains the uid and gid representing a Unix user
262
+type User struct {
263
+	UID int `json:"root_uid"`
264
+	GID int `json:"root_gid"`
265
+}