engine

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pathlist = []string{"/usr/local/sbin", "/usr/local/bin", "/usr/sbin",
	"/usr/bin", "/sbin", "/bin"}

Functions

This section is empty.

Types

type Engine

type Engine interface {
	// Run executes a command inside a container. command is the path to the
	// binary (post-chroot) to exec, args is the arguments to pass to the
	// binary, environment is the set of environment variables to set for the
	// binary, chroot is the path on the host where the container's root
	// filesystem exists, and workingDir specifies the path inside the
	// container that should be the current working directory for the binary.
	// If workingDir is "", the default should be "/".
	Run(command string, args []string, environment types.Environment, chroot, workingDir string) error
}

Engine is an interface which is accepted by lib.Run, and used to perform the actual execution of a binary inside the container.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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