package windows

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

Index

Variables

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

Define name and version for windows

var DefaultIsolation container.IsolationLevel = "process"

DefaultIsolation allows users to specify a default isolation mode for when running a container on Windows. For example docker daemon -D --exec-opt isolation=hyperv will cause Windows to always run containers as Hyper-V containers unless otherwise specified.

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 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.

func (*Driver) Update

func (d *Driver) Update(c *execdriver.Command) error

Update updates resource configs for a container.

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

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

Version
v1.10.0-rc2
Published
Jan 27, 2016
Platform
windows/amd64
Imports
16 packages
Last checked
4 minutes ago

Tools for package owners.