boot

package
v0.0.0-...-baf486e Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PIDInit

func PIDInit()

PIDInit initializes a PID namespace and execs the provided init It can be called at the begining of any main() function and will only do anythin if the environment indicates that it should.

func SwitchRoot

func SwitchRoot(newRoot, init string) error

SwitchRoot implements a switch_root to the image in newRoot and Execs init Since this uses Exec, the process is completely taken over by this call, so don't expect a return. SwitchRoot is a wrapper for OS specific implementation(s)

func UnshareRoot

func UnshareRoot(newRoot, init string) error

UnshareRoot spawns the image in newRoot as a new container. This is a blocking execution. TODO: add process tracking capabilities, non-blocking execution UnshareRoot is a wrapper for OS specific implementation(s)

Types

This section is empty.

Jump to

Keyboard shortcuts

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