lxc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2014 License: Apache-2.0 Imports: 34 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DriverName = "lxc"
View Source
const LxcTemplate = `` /* 3190-byte string literal not displayed */

Variables

View Source
var (
	ErrCannotParse = errors.New("cannot parse raw input")
)
View Source
var LxcTemplateCompiled *template.Template

Functions

func KillLxc

func KillLxc(id string, sig int) error

func NewDriver

func NewDriver(root, initPath string, apparmor bool) (*driver, error)

Types

type InitArgs added in v1.2.0

type InitArgs struct {
	User       string
	Gateway    string
	Ip         string
	WorkDir    string
	Privileged bool
	Env        []string
	Args       []string
	Mtu        int
	Console    string
	Pipe       int
	Root       string
	CapAdd     string
	CapDrop    string
}

Args provided to the init function for a driver

type TtyConsole added in v1.2.0

type TtyConsole struct {
	MasterPty *os.File
	SlavePty  *os.File
}

func NewTtyConsole added in v1.2.0

func NewTtyConsole(command *execdriver.Command, pipes *execdriver.Pipes) (*TtyConsole, error)

func (*TtyConsole) AttachPipes added in v1.2.0

func (t *TtyConsole) AttachPipes(command *exec.Cmd, pipes *execdriver.Pipes) error

func (*TtyConsole) Close added in v1.2.0

func (t *TtyConsole) Close() error

func (*TtyConsole) Master added in v1.2.0

func (t *TtyConsole) Master() *os.File

func (*TtyConsole) Resize added in v1.2.0

func (t *TtyConsole) Resize(h, w int) error

Jump to

Keyboard shortcuts

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