Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CloneFlagsTable = make(map[NSType]int)
CloneFlagsTable is exported so that consumers of this package don't need to define this same table again.
Functions ¶
Types ¶
type NSType ¶
type NSType string
NSType defines a namespace type.
const ( NSTypeCGroup NSType = "cgroup" NSTypeIPC NSType = "ipc" NSTypeNet NSType = "net" NSTypePID NSType = "pid" NSTypeUTS NSType = "uts" )
List of namespace types. Notice that neither "mnt" nor "user" are listed into this list. Because Golang is multithreaded, we get some errors when trying to switch to those namespaces, getting "invalid argument". The solution is to reexec the current code so that it will call into a C constructor, making sure the namespace can be entered without multithreading issues.
Click to show internal directories.
Click to hide internal directories.