process_tracker

package
v0.0.0-...-68efac8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

func NewProcess

func NewProcess(
	id uint32,
	containerPath string,
	runner command_runner.CommandRunner,
) *Process

func (*Process) Attach

func (p *Process) Attach(processIO api.ProcessIO)

func (*Process) ID

func (p *Process) ID() uint32
func (p *Process) Link()

func (*Process) SetTTY

func (p *Process) SetTTY(tty api.TTYSpec) error

func (*Process) Spawn

func (p *Process) Spawn(cmd *exec.Cmd, tty *api.TTYSpec) (ready, active chan error)

func (*Process) Wait

func (p *Process) Wait() (int, error)

type ProcessTracker

type ProcessTracker interface {
	Run(*exec.Cmd, api.ProcessIO, *api.TTYSpec) (api.Process, error)
	Attach(uint32, api.ProcessIO) (api.Process, error)
	Restore(processID uint32)
	ActiveProcesses() []api.Process
}

func New

func New(containerPath string, runner command_runner.CommandRunner) ProcessTracker

type UnknownProcessError

type UnknownProcessError struct {
	ProcessID uint32
}

func (UnknownProcessError) Error

func (e UnknownProcessError) Error() string

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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