Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bind ¶
Bind creates namespace file at ns.Path and mounts corresponding namespace of process with passed pid to it with unix.MS_BIND flag.
func Remove ¶
func Remove(ns specs.LinuxNamespace) error
Remove unmounts and removes namespace file at ns.Path. Remove doesn't return an error if namespace is not mounted or file doesn't exist.
func UnshareAll ¶
func UnshareAll(namespaces []specs.LinuxNamespace) error
UnshareAll is used to create passed namespaces and save them for the later use. After call to UnshareAll passed namespaces can be found at LinuxNamespace.Path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.