Documentation ¶
Index ¶
Constants ¶
View Source
const DriverName = "lxc"
View Source
const LxcTemplate = `` /* 3130-byte string literal not displayed */
Variables ¶
View Source
var (
ErrCannotParse = errors.New("cannot parse raw input")
)
View Source
var ErrExec = errors.New("Unsupported: Exec is not supported by the lxc driver")
View Source
var LxcTemplateCompiled *template.Template
Functions ¶
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
func NewTtyConsole ¶ added in v1.2.0
func NewTtyConsole(processConfig *execdriver.ProcessConfig, 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
Click to show internal directories.
Click to hide internal directories.