package native
import "github.com/docker/docker/daemon/execdriver/native"
Index ¶
- Constants
- type Driver
- func NewDriver(root string, options []string) (*Driver, error)
- func (d *Driver) Clean(id string) error
- func (d *Driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessConfig, pipes *execdriver.Pipes, hooks execdriver.Hooks) (int, error)
- func (d *Driver) GetPidsForContainer(id string) ([]int, error)
- func (d *Driver) Info(id string) execdriver.Info
- func (d *Driver) Kill(c *execdriver.Command, sig int) error
- func (d *Driver) Name() string
- func (d *Driver) Pause(c *execdriver.Command) error
- func (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, hooks execdriver.Hooks) (execdriver.ExitStatus, error)
- func (d *Driver) Stats(id string) (*execdriver.ResourceStats, error)
- func (d *Driver) SupportsHooks() bool
- func (d *Driver) Terminate(c *execdriver.Command) error
- func (d *Driver) Unpause(c *execdriver.Command) error
- func (d *Driver) Update(c *execdriver.Command) error
- type TtyConsole
Constants ¶
const ( DriverName = "native" Version = "0.2" )
Define constants for native driver
Types ¶
type Driver ¶
Driver contains all information for native driver, it implements execdriver.Driver.
func NewDriver ¶
NewDriver returns a new native driver, called from NewDriver of execdriver.
func (*Driver) Clean ¶
Clean implements the exec driver Driver interface.
func (*Driver) Exec ¶
func (d *Driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessConfig, pipes *execdriver.Pipes, hooks execdriver.Hooks) (int, error)
Exec implements the exec driver Driver interface, it calls libcontainer APIs to execute a container.
func (*Driver) GetPidsForContainer ¶
GetPidsForContainer implements the exec driver Driver interface.
func (*Driver) Info ¶
func (d *Driver) Info(id string) execdriver.Info
Info implements the exec driver Driver interface.
func (*Driver) Kill ¶
func (d *Driver) Kill(c *execdriver.Command, sig int) error
Kill implements the exec driver Driver interface.
func (*Driver) Name ¶
Name implements the exec driver Driver interface.
func (*Driver) Pause ¶
func (d *Driver) Pause(c *execdriver.Command) error
Pause implements the exec driver Driver interface, it calls libcontainer API to pause a container.
func (*Driver) Run ¶
func (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, hooks execdriver.Hooks) (execdriver.ExitStatus, error)
Run implements the exec driver Driver interface, it calls libcontainer APIs to run a container.
func (*Driver) Stats ¶
func (d *Driver) Stats(id string) (*execdriver.ResourceStats, error)
Stats implements the exec driver Driver interface.
func (*Driver) SupportsHooks ¶
SupportsHooks implements the execdriver Driver interface. The libcontainer/runC-based native execdriver does exploit the hook mechanism
func (*Driver) Terminate ¶
func (d *Driver) Terminate(c *execdriver.Command) error
Terminate implements the exec driver Driver interface.
func (*Driver) Unpause ¶
func (d *Driver) Unpause(c *execdriver.Command) error
Unpause implements the exec driver Driver interface, it calls libcontainer API to unpause a container.
func (*Driver) Update ¶
func (d *Driver) Update(c *execdriver.Command) error
Update updates configs for a container
type TtyConsole ¶
type TtyConsole struct {
// contains filtered or unexported fields
}
TtyConsole implements the exec driver Terminal interface.
func NewTtyConsole ¶
func NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes) (*TtyConsole, error)
NewTtyConsole returns a new TtyConsole struct.
func (*TtyConsole) AttachPipes ¶
func (t *TtyConsole) AttachPipes(pipes *execdriver.Pipes) error
AttachPipes attaches given pipes to TtyConsole
func (*TtyConsole) Close ¶
func (t *TtyConsole) Close() error
Close implements Close method of Terminal interface
func (*TtyConsole) Resize ¶
func (t *TtyConsole) Resize(h, w int) error
Resize implements Resize method of Terminal interface
Source Files ¶
apparmor.go create.go driver.go exec.go info.go init.go seccomp.go seccomp_unsupported.go
Directories ¶
Path | Synopsis |
---|---|
daemon/execdriver/native/template |
- Version
- v1.10.0
- Published
- Feb 4, 2016
- Platform
- linux/amd64
- Imports
- 36 packages
- Last checked
- 11 minutes ago –
Tools for package owners.