File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,24 @@ type LinuxRuntime struct {
4141// Namespace is the configuration for a linux namespace.
4242type Namespace struct {
4343 // Type is the type of Linux namespace
44- Type string `json:"type"`
44+ Type NamespaceType `json:"type"`
4545 // Path is a path to an existing namespace persisted on disk that can be joined
4646 // and is of the same type
4747 Path string `json:"path"`
4848}
4949
50+ // NamespaceType is one of the linux namespaces
51+ type NamespaceType string
52+
53+ const (
54+ PIDNamespace NamespaceType = "pid"
55+ NetworkNamespace = "network"
56+ MountNamespace = "mount"
57+ IPCNamespace = "ipc"
58+ UTSNamespace = "uts"
59+ UserNamespace = "user"
60+ )
61+
5062// IDMapping specifies UID/GID mappings
5163type IDMapping struct {
5264 // HostID is the UID/GID of the host user or group
You can’t perform that action at this time.
0 commit comments