Versions in this module Expand all Collapse all v0 v0.17.0 May 18, 2026 Changes in this version + var CgroupsNamespace = []Creator — linux/amd64 + var ErrNoModulesFound = fmt.Errorf("no modules found") — linux/amd64 + var Namespace = []Creator — linux/amd64 + var PreNamespace = []Creator — linux/amd64 + func Create(namespace []Creator, optional bool) — linux/amd64 + func GetModulesFromCmdline(m *InitModuleLoader) ([]string, error) — linux/amd64 + func GetModulesFromConf(pattern string) ([]string, error) — linux/amd64 + func InstallAllModules() error — linux/amd64 + func InstallModules(m *InitModuleLoader, modules []string) — linux/amd64 + func InstallModulesFromDir(pattern string, loader *InitModuleLoader) error — linux/amd64 + func OpenTTYDevices(names []string) ([]io.Writer, error) — linux/amd64 type CommandModifier — linux/amd64 + func WithMultiTTY(mtty bool, openFn func([]string) ([]io.Writer, error), ttyNames []string) CommandModifier + func WithStderr(w io.Writer) CommandModifier + func WithStdin(r io.Reader) CommandModifier + func WithStdout(w io.Writer) CommandModifier + type CpDir struct — linux/amd64 + Source string + Target string + func (c CpDir) Create() error + func (c CpDir) String() string + type Creator interface — linux/amd64 + Create func() error + type Dev struct — linux/amd64 + Dev int + Mode uint32 + Name string + func (d Dev) Create() error + func (d Dev) String() string + type Dir struct — linux/amd64 + Mode os.FileMode + Name string + func (d Dir) Create() error + func (d Dir) String() string + type InitModuleLoader struct — linux/amd64 + Cmdline *cmdline.CmdLine + ExcludedMods map[string]bool + Prober func(name string, modParameters string) error + func NewInitModuleLoader() *InitModuleLoader + func (i *InitModuleLoader) IsExcluded(mod string) bool + func (i *InitModuleLoader) LoadModule(mod string) error + type Mount struct — linux/amd64 + FSType string + Flags uintptr + Opts string + Source string + Target string + func (m Mount) Create() error + func (m Mount) String() string + type Symlink struct — linux/amd64 + NewPath string + Target string + func (s Symlink) Create() error + func (s Symlink) String() string v0.7.0 Aug 31, 2020 Changes in this version + func Command(bin string, m ...CommandModifier) *exec.Cmd + func CreateRootfs() — linux/amd64 + func NetInit() + func RunCommands(debug func(string, ...interface{}), commands ...*exec.Cmd) int — linux/amd64 + func SetEnv() — linux/amd64 + func WaitOrphans() uint — linux/amd64 + type CommandModifier func(c *exec.Cmd) + func WithArguments(arg ...string) CommandModifier + func WithCloneFlags(flags uintptr) CommandModifier + func WithTTYControl(ctty bool) CommandModifier