windows

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2016 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Define name and version for windows

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

View Source
var TP4RetryHack bool

TP4RetryHack is a hack to retry CreateComputeSystem if it fails with known return codes from Windows due to bugs in TP4.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL