Documentation ¶
Index ¶
- Constants
- Variables
- func ChangeDir(path string) error
- func ChangeRoot(path string) error
- func NewWrapper(NSs []string, f func()) error
- func OpenNS(path string) (int, error)
- func PivotRoot(newroot, oldroot string) error
- func RemoveNetNamed(name string) error
- type Namespace
- func (ns *Namespace) Close() error
- func (ns *Namespace) CloseNS(nstype string) error
- func (ns *Namespace) Equal(other *Namespace) bool
- func (ns *Namespace) EqualNS(other *Namespace, nstype string) bool
- func (ns *Namespace) IsOpen() bool
- func (ns *Namespace) IsOpenNS(nstype string) bool
- func (ns *Namespace) Set(NSs []string) error
- func (ns *Namespace) SetType(nstypes []string)
- func (ns *Namespace) Wrapper(NSs []string, f func()) error
- type Namespaces
- type NamespacesFd
Constants ¶
View Source
const ( // CLONE_NEWUTS Work CLONE_NEWUTS = unix.CLONE_NEWUTS // CLONE_NEWNS Maybe work CLONE_NEWNS = unix.CLONE_NEWNS // CLONE_NEWCGROUP Don`t test CLONE_NEWCGROUP = unix.CLONE_NEWCGROUP // CLONE_NEWTIME Maybe work CLONE_NEWTIME = unix.CLONE_NEWTIME // CLONE_NEWIPC Work CLONE_NEWIPC = unix.CLONE_NEWIPC //Work // CLONE_NEWUSER Don`t work CLONE_NEWUSER = unix.CLONE_NEWUSER // CLONE_NEWPID Don`t work CLONE_NEWPID = unix.CLONE_NEWPID // CLONE_NEWNET Work CLONE_NEWNET = unix.CLONE_NEWNET //Work // CLONE_IO Dont test CLONE_IO = unix.CLONE_IO )
Variables ¶
View Source
var CloneFlags = map[string]int{ // contains filtered or unexported fields }
View Source
var NSs = []string{pidPath, userPath, utsPath, mntPath, netPath, timePath, ipcPath, cgroupPath}
Functions ¶
func ChangeRoot ¶
func NewWrapper ¶
func RemoveNetNamed ¶
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
func FromThread ¶
func NetFromName ¶
type Namespaces ¶
type Namespaces struct {
// contains filtered or unexported fields
}
type NamespacesFd ¶
type NamespacesFd struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.