hcs

package
v1.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 19 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	UseHyperV bool `json:"useHyperV,omitempty"`

	Layers []string `json:"layers"`

	TerminateDuration time.Duration `json:"terminateDuration,omitempty"`

	IgnoreFlushesDuringBoot bool `json:"ignoreFlushesDuringBoot,omitempty"`

	AllowUnqualifiedDNSQuery bool     `json:"allowUnqualifiedDNSQuery,omitempty"`
	DNSSearchList            []string `json:"dnsSearchList,omitempty"`
	NetworkEndpoints         []string `json:"networkEndpoints,omitempty"`
	NetworkSharedContainerID string

	Credentials string `json:"credentials,omitempty"`
}

type Container

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

func (*Container) AddProcess

func (c *Container) AddProcess(ctx context.Context, id string, spec *specs.Process, io *IO) (*Process, error)

func (*Container) CloseIO

func (c *Container) CloseIO(ctx context.Context) error

func (*Container) Delete

func (c *Container) Delete(ctx context.Context)

func (*Container) ExitCode

func (c *Container) ExitCode() (uint32, error)

func (*Container) GetConfiguration

func (c *Container) GetConfiguration() Configuration

func (*Container) ID

func (c *Container) ID() string

func (*Container) Kill

func (c *Container) Kill(ctx context.Context) error

func (*Container) Pid

func (c *Container) Pid() uint32

func (*Container) Processes

func (c *Container) Processes() []*Process

func (*Container) ResizePty

func (c *Container) ResizePty(ctx context.Context, size runtime.ConsoleSize) error

func (*Container) Start

func (c *Container) Start(ctx context.Context) error

func (*Container) Stop

func (c *Container) Stop(ctx context.Context) error

type HCS

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

func New

func New(owner, rootDir string) *HCS

func (*HCS) CreateContainer

func (s *HCS) CreateContainer(ctx context.Context, id string, spec specs.Spec, conf Configuration, io *IO) (c *Container, err error)

func (*HCS) LoadContainers

func (s *HCS) LoadContainers(ctx context.Context) ([]*Container, error)

type IO

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

func NewIO

func NewIO(stdin, stdout, stderr string, terminal bool) (*IO, error)

NewIO connects to the provided pipe addresses

func (*IO) Close

func (i *IO) Close()

Close terminates all successfully dialed IO connections

type Process

type Process struct {
	hcsshim.Process
	// contains filtered or unexported fields
}

func (*Process) Delete

func (p *Process) Delete() error

func (*Process) ExitCode

func (p *Process) ExitCode() (uint32, error)

func (*Process) ExitedAt

func (p *Process) ExitedAt() time.Time

func (*Process) ID

func (p *Process) ID() string

func (*Process) Pid

func (p *Process) Pid() uint32

func (*Process) Status

func (p *Process) Status() runtime.Status

Jump to

Keyboard shortcuts

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