nodes

package
v0.11.2-0...-5e2af07 Latest Latest
Warning

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

Go to latest
Published: May 28, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultNodes = []string{
	"/dev/null",
	"/dev/zero",
	"/dev/full",
	"/dev/random",
	"/dev/urandom",
	"/dev/tty",
}

Default list of device nodes to copy

Functions

func Copy

func Copy(rootfs, node string, shouldExist bool) error

Copy copies the device node into the rootfs. If the node on the host system does not exist and the boolean flag is passed an error will be returned

func CopyN

func CopyN(rootfs string, nodesToCopy []string, shouldExist bool) error

CopyN copies the device node from the host into the rootfs

func GetHostDeviceNodes

func GetHostDeviceNodes() ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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