process_tracker

package
v0.0.0-...-33bca21 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: Apache-2.0 Imports: 11 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,
	signaller Signaller,
) *Process

func (*Process) Attach

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

func (*Process) ID

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

func (*Process) SetTTY

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

func (*Process) Signal

func (p *Process) Signal(s garden.Signal) error

func (*Process) Spawn

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

func (*Process) Wait

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

type ProcessTracker

type ProcessTracker interface {
	Run(processID uint32, cmd *exec.Cmd, io garden.ProcessIO, tty *garden.TTYSpec, signaller Signaller) (garden.Process, error)
	Attach(processID uint32, io garden.ProcessIO) (garden.Process, error)
	Restore(processID uint32, signaller Signaller)
	ActiveProcesses() []garden.Process
}

func New

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

type Signaller

type Signaller interface {
	Signal(os.Signal) error
}

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