Skip to content

Commit 309da60

Browse files
committed
TEMPORARY! Avoid compilation errors in nocs on darwin
it is now possible to create Spec structs on darwin machines. This may be superseded by opencontainers#135 This is primarily used by https://github.com/cloudfoundry-incubator/nocs [#101501242] at https://www.pivotaltracker.com/n/projects/1158420 Signed-off-by: Gareth Smith <[email protected]>
1 parent 96bcd04 commit 309da60

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

config_darwin.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// +build darwin
2+
3+
package specs
4+
5+
// User specifies specific user and group information for the container's
6+
// main process.
7+
type User struct {
8+
// UID is the user id.
9+
UID int32 `json:"uid"`
10+
// GID is the group id.
11+
GID int32 `json:"gid"`
12+
// AdditionalGids are additional group ids set for the container's process.
13+
AdditionalGids []int32 `json:"additionalGids"`
14+
}

0 commit comments

Comments
 (0)