namespaces

package
v0.0.0-...-baa748c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(ns Desc)

func WaitUntilSetup

func WaitUntilSetup()

Types

type Desc

type Desc struct {
	// What namespaces to create
	Mount   bool
	Uts     bool
	Ipc     bool
	Network bool
	Pid     bool
	Cgroup  bool
	User    bool

	CPUShare    int
	MemoryLimit int

	// Other namespace settings
	Persistent string // Path to where to save dirs
	MountProc  bool   // Whether or not to mount the proc filesystem
	Cmd        string // The command to run in the new namespace
	MountPath  string // The command to run in the new namespace
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL