1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: Factor out user in execdriver\driver

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-10-31 19:19:24 -07:00
parent 4468e1e74e
commit 910e4ba7ed
2 changed files with 6 additions and 7 deletions

View file

@ -121,13 +121,6 @@ type ResourceStats struct {
SystemUsage uint64 `json:"system_usage"`
}
// User contains the uid and gid representing a Unix user
// TODO Windows: Factor out User
type User struct {
UID int `json:"root_uid"`
GID int `json:"root_gid"`
}
// ProcessConfig describes a process that will be run inside a container.
type ProcessConfig struct {
exec.Cmd `json:"-"`

View file

@ -257,3 +257,9 @@ func Stats(containerDir string, containerMemoryLimit int64, machineMemory int64)
MemoryLimit: memoryLimit,
}, nil
}
// User contains the uid and gid representing a Unix user
type User struct {
UID int `json:"root_uid"`
GID int `json:"root_gid"`
}