dadoo

package
v0.0.0-...-d02b2c3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRuncCommand

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

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, runcRoot string, signallerFactory *signals.SignallerFactory,
	commandRunner commandrunner.CommandRunner, shouldCleanup bool, containerRootHostUID, containerRootHostGID uint32,
	bundleSaver depot.BundleSaver, bundleLookupper depot.BundleLookupper,
	processDepot execrunner.ProcessDepot,
) *ExecRunner

func (*ExecRunner) Attach

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

func (*ExecRunner) Run

func (d *ExecRunner) Run(
	log lager.Logger, processID, sandboxHandle string,
	pio garden.ProcessIO, tty bool, procJSON io.Reader, extraCleanup func() error,
) (proc garden.Process, theErr error)

func (*ExecRunner) RunPea

func (d *ExecRunner) RunPea(
	log lager.Logger, processID string, processBundle goci.Bndl, sandboxHandle string,
	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