Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move User struct to spec.go #96

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ type Process struct {
Cwd string `json:"cwd"`
}

// User specifies 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"`
}

// Root contains information about the container's root filesystem on the host.
type Root struct {
// Path is the absolute path to the container's root filesystem.
Expand Down
11 changes: 0 additions & 11 deletions spec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ type Linux struct {
RootfsPropagation string `json:"rootfsPropagation"`
}

// User specifies Linux 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"`
}

// Namespace is the configuration for a Linux namespace
type Namespace struct {
// Type is the type of Linux namespace
Expand Down