{"modulePath":"github.com/ssdev-go/moby","version":"v1.10.3","isLatest":false,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package native\n\n## Constants\n\n```go\nconst (\n\tDriverName = \"native\"\n\tVersion    = \"0.2\"\n)\n```\nDefine constants for native driver\n\n## Types\n\n```go\ntype Driver struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\nDriver contains all information for native driver, it implements execdriver.Driver.\n\n```go\nfunc NewDriver(root string, options []string) (*Driver, error)\n```\nNewDriver returns a new native driver, called from NewDriver of execdriver.\n\n```go\nfunc (d *Driver) Clean(id string) error\n```\nClean implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Exec(c *execdriver.Command, processConfig *execdriver.ProcessConfig, pipes *execdriver.Pipes, hooks execdriver.Hooks) (int, error)\n```\nExec implements the exec driver Driver interface, it calls libcontainer APIs to execute a container.\n\n```go\nfunc (d *Driver) GetPidsForContainer(id string) ([]int, error)\n```\nGetPidsForContainer implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Info(id string) execdriver.Info\n```\nInfo implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Kill(c *execdriver.Command, sig int) error\n```\nKill implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Name() string\n```\nName implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Pause(c *execdriver.Command) error\n```\nPause implements the exec driver Driver interface, it calls libcontainer API to pause a container.\n\n```go\nfunc (d *Driver) Run(c *execdriver.Command, pipes *execdriver.Pipes, hooks execdriver.Hooks) (execdriver.ExitStatus, error)\n```\nRun implements the exec driver Driver interface, it calls libcontainer APIs to run a container.\n\n```go\nfunc (d *Driver) Stats(id string) (*execdriver.ResourceStats, error)\n```\nStats implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) SupportsHooks() bool\n```\nSupportsHooks implements the execdriver Driver interface. The libcontainer/runC-based native execdriver does exploit the hook mechanism\n\n```go\nfunc (d *Driver) Terminate(c *execdriver.Command) error\n```\nTerminate implements the exec driver Driver interface.\n\n```go\nfunc (d *Driver) Unpause(c *execdriver.Command) error\n```\nUnpause implements the exec driver Driver interface, it calls libcontainer API to unpause a container.\n\n```go\nfunc (d *Driver) Update(c *execdriver.Command) error\n```\nUpdate updates configs for a container\n\n```go\ntype TtyConsole struct {\n\t// contains filtered or unexported fields\n}\n```\nTtyConsole implements the exec driver Terminal interface.\n\n```go\nfunc NewTtyConsole(console libcontainer.Console, pipes *execdriver.Pipes) (*TtyConsole, error)\n```\nNewTtyConsole returns a new TtyConsole struct.\n\n```go\nfunc (t *TtyConsole) AttachPipes(pipes *execdriver.Pipes) error\n```\nAttachPipes attaches given pipes to TtyConsole\n\n```go\nfunc (t *TtyConsole) Close() error\n```\nClose implements Close method of Terminal interface\n\n```go\nfunc (t *TtyConsole) Resize(h, w int) error\n```\nResize implements Resize method of Terminal interface\n\n","path":"github.com/ssdev-go/moby/daemon/execdriver/native","name":"native","synopsis":"","isRedistributable":true}
