runner

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const MNT_DETACH = 0x2

Variables

View Source
var DataDir string
View Source
var TarBin = os.Getenv("GARDEN_TAR_PATH")

Functions

func MustMountTmpfs

func MustMountTmpfs(destination string)

func MustUnmountTmpfs

func MustUnmountTmpfs(destination string)

Types

type GardenRunner

type GardenRunner struct {
	*ginkgomon.Runner
	Cmd            *exec.Cmd
	TmpDir         string
	GraphPath      string
	ConsoleSockets string
	DepotDir       string
	DebugIp        string
	DebugPort      int
	Network, Addr  string
}

func NewGardenRunner

func NewGardenRunner(bin, initBin, nstarBin, dadooBin, grootfsBin, rootfs, tarBin, network, address string, user *syscall.Credential, argv ...string) GardenRunner

type RunningGarden

type RunningGarden struct {
	client.Client

	Pid int

	Tmpdir string

	DepotDir  string
	DataDir   string
	GraphPath string
	// contains filtered or unexported fields
}

func Start

func Start(bin, initBin, nstarBin, dadooBin, grootfsBin, rootfs, tarBin string, user *syscall.Credential, argv ...string) *RunningGarden

func (*RunningGarden) Buffer

func (r *RunningGarden) Buffer() *gbytes.Buffer

func (*RunningGarden) Cleanup

func (r *RunningGarden) Cleanup()

func (*RunningGarden) DestroyAndStop

func (r *RunningGarden) DestroyAndStop() error

func (*RunningGarden) DestroyContainers

func (r *RunningGarden) DestroyContainers() error

func (*RunningGarden) ExitCode

func (r *RunningGarden) ExitCode() int

func (*RunningGarden) Kill

func (r *RunningGarden) Kill() error

func (*RunningGarden) NumGoroutines

func (r *RunningGarden) NumGoroutines() (int, error)

func (*RunningGarden) Stop

func (r *RunningGarden) Stop() error

Jump to

Keyboard shortcuts

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