Documentation ¶
Index ¶
- Constants
- Variables
- func MustMountTmpfs(destination string)
- func MustUnmountTmpfs(destination string)
- type GardenRunner
- type RunningGarden
- func (r *RunningGarden) Buffer() *gbytes.Buffer
- func (r *RunningGarden) Cleanup()
- func (r *RunningGarden) DestroyAndStop() error
- func (r *RunningGarden) DestroyContainers() error
- func (r *RunningGarden) ExitCode() int
- func (r *RunningGarden) Kill() error
- func (r *RunningGarden) NumGoroutines() (int, error)
- func (r *RunningGarden) Stop() error
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
Click to show internal directories.
Click to hide internal directories.