Merge pull request #63 from wking/clarify-idmapping-fields

spec_linux.go: Rename IDMapping fields to follow syscall.SysProcIDMap
This commit is contained in:
Mrunal Patel 2015-07-09 11:45:40 -07:00
commit 30d607aa38
2 changed files with 12 additions and 12 deletions

View File

@ -123,16 +123,16 @@ rlimits allow setting resource limits. The type is from the values defined in [t
```
"uidMappings": [
{
"from" : 1000,
"to" : 0,
"count" : 10
"hostID": 1000,
"containerID": 0,
"size": 10
}
],
"gidMappings": [
{
"from" : 1000,
"to" : 0,
"count" : 10
"hostID": 1000,
"containerID": 0,
"size": 10
}
]
```

View File

@ -52,12 +52,12 @@ type Namespace struct {
// IDMapping specifies uid/gid mappings.
type IDMapping struct {
// From is the uid/gid of the host user or group.
From int32 `json:"from"`
// To is the uid/gid of the container's user or group.
To int32 `json:"to"`
// Count is how many uid/gids to map after To.
Count int32 `json:"count"`
// HostID is the uid/gid of the host user or group.
HostID int32 `json:"hostID"`
// ContainerID is the uid/gid of the container's user or group.
ContainerID int32 `json:"containerID"`
// Size is the length of the range of IDs mapped between the two namespaces.
Size int32 `json:"size"`
}
// Rlimit type and restrictions.