Skip to content

Commit

Permalink
TEMPORARY! Avoid compilation errors in nocs on darwin
Browse files Browse the repository at this point in the history
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 <gsmith@pivotal.io>
  • Loading branch information
glyn committed Sep 22, 2015
1 parent 96bcd04 commit 309da60
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions config_darwin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// +build darwin

package specs

// User specifies specific user and group information for the container's
// main process.
type User struct {
// UID is the user id.
UID int32 `json:"uid"`
// GID is the group id.
GID int32 `json:"gid"`
// AdditionalGids are additional group ids set for the container's process.
AdditionalGids []int32 `json:"additionalGids"`
}

0 comments on commit 309da60

Please sign in to comment.