package windows

import "github.com/dotcloud/docker/daemon/execdriver/windows"

Index

Variables

var (
	DriverName = "Windows 1854"
	Version    = dockerversion.VERSION + " " + dockerversion.GITCOMMIT
)

Define name and version for windows

Types

type Driver

type Driver struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Driver contains all information for windows driver, it implements execdriver.Driver

func NewDriver

func NewDriver(root, initPath string, options []string) (*Driver, error)

NewDriver returns a new windows driver, called from NewDriver of execdriver.

func (*Driver) Clean

func (d *Driver) Clean(id string) error

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.

func (*Driver) GetPidsForContainer

func (d *Driver) GetPidsForContainer(id string) ([]int, error)

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(p *execdriver.Command, sig int) error

Kill implements the exec driver Driver interface.

func (*Driver) Name

func (d *Driver) Name() string

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.

func (*Driver) Run

Run implements the exec driver Driver interface

func (*Driver) Stats

func (d *Driver) Stats(id string) (*execdriver.ResourceStats, error)

Stats implements the exec driver Driver interface.

func (*Driver) SupportsHooks

func (d *Driver) SupportsHooks() bool

SupportsHooks implements the execdriver Driver interface. The windows driver does not support the hook mechanism

func (*Driver) Terminate

func (d *Driver) Terminate(p *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.

type StdConsole

type StdConsole struct {
}

StdConsole is for when using a container non-interactively

func NewStdConsole

func NewStdConsole() *StdConsole

NewStdConsole returns a new StdConsole struct.

func (*StdConsole) Close

func (s *StdConsole) Close() error

Close implements Close method of Terminal interface.

func (*StdConsole) Resize

func (s *StdConsole) Resize(h, w int) error

Resize implements Resize method of Terminal interface.

type TtyConsole

type TtyConsole struct {
	// contains filtered or unexported fields
}

TtyConsole implements the exec driver Terminal interface.

func NewTtyConsole

func NewTtyConsole(id string, processid uint32) *TtyConsole

NewTtyConsole returns a new TtyConsole struct.

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

checkoptions.go clean.go exec.go getpids.go info.go namedpipes.go pauseunpause.go run.go stats.go stdconsole.go terminatekill.go ttyconsole.go windows.go

Version
v1.9.1-rc1
Published
Nov 12, 2015
Platform
windows/amd64
Imports
15 packages
Last checked
2 seconds ago

Tools for package owners.