Documentation ¶
Index ¶
Constants ¶
View Source
const ( // https://github.com/torvalds/linux/blob/master/include/uapi/linux/magic.h NSFS_MAGIC = 0x6e736673 PROCFS_MAGIC = 0x9fa0 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NSPathNotExistErr ¶
type NSPathNotExistErr struct {
// contains filtered or unexported fields
}
func (NSPathNotExistErr) Error ¶
func (e NSPathNotExistErr) Error() string
type NSPathNotNSErr ¶
type NSPathNotNSErr struct {
// contains filtered or unexported fields
}
func (NSPathNotNSErr) Error ¶
func (e NSPathNotNSErr) Error() string
type Namespace ¶
type Namespace interface { // Executes the passed closure in this object's namespace, // attempting to restore the original namespace before returning. // No code called from Do() should create go-routines, or the risk // of executing code in an incorrect namespace exists. Do(toRun func(Namespace) error) error // Sets the current namespace to this object's namespace. Set() error // Returns the filesystem path representing this object's namespace Path() string // Returns a file descriptor representing this object's namespace Fd() uintptr // Cleans up this instance of the namespace; if this instance // is the last user the namespace will be destroyed Close() error }
Click to show internal directories.
Click to hide internal directories.