dadoo

package
v0.0.0-...-cf22b21 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRuncCommand

func BuildRuncCommand(runtimePath, runMode, processPath, containerHandle, ttyConsoleSocket, logfilePath string) *exec.Cmd

func SetWinSize

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

Types

type DynamicMultiWriter

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

func NewDynamicMultiWriter

func NewDynamicMultiWriter() *DynamicMultiWriter

func (*DynamicMultiWriter) Attach

func (w *DynamicMultiWriter) Attach(writer io.Writer)

func (*DynamicMultiWriter) Count

func (w *DynamicMultiWriter) Count() int

func (*DynamicMultiWriter) Write

func (w *DynamicMultiWriter) Write(p []byte) (int, error)

type ExecRunner

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

func NewExecRunner

func NewExecRunner(
	dadooPath, runcPath string, signallerFactory *signals.SignallerFactory,
	commandRunner commandrunner.CommandRunner, shouldCleanup bool, runMode string,
) *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, processID, processPath, sandboxHandle, sandboxBundlePath string,
	containerRootHostUID, containerRootHostGID uint32, pio garden.ProcessIO, tty bool,
	procJSON io.Reader, extraCleanup func() error,
) (proc garden.Process, theErr error)

Jump to

Keyboard shortcuts

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