dadoo

package
v0.0.0-...-7f502db Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetWinSize

func SetWinSize(f *os.File, ws garden.WindowSize) error

Types

type ExecRunner

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

func NewExecRunner

func NewExecRunner(dadooPath, runcPath string, processIDGen runrunc.UidGenerator, pidGetter PidGetter, commandRunner command_runner.CommandRunner) *ExecRunner

func (*ExecRunner) Attach

func (d *ExecRunner) Attach(log lager.Logger, processID string, io garden.ProcessIO, processesPath string) (garden.Process, error)

func (*ExecRunner) Run

func (d *ExecRunner) Run(log lager.Logger, spec *runrunc.PreparedSpec, bundlePath, processesPath, handle string, tty *garden.TTYSpec, pio garden.ProcessIO) (p garden.Process, theErr error)

type PidFileReader

type PidFileReader struct {
	Clock         clock.Clock
	Timeout       time.Duration
	SleepInterval time.Duration
}

func (*PidFileReader) Pid

func (p *PidFileReader) Pid(pidFilePath string) (int, error)

type PidGetter

type PidGetter interface {
	Pid(pidFilePath string) (int, error)
}

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