runrunc

package
v0.0.0-...-53a29fe Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPath = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Variables

This section is empty.

Functions

This section is empty.

Types

type ProcessTracker

type ProcessTracker interface {
	Run(id string, cmd *exec.Cmd, io garden.ProcessIO, tty *garden.TTYSpec) (garden.Process, error)
}

type RunRunc

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

da doo

func New

func New(tracker ProcessTracker, runner command_runner.CommandRunner, pidgen UidGenerator, runc RuncBinary) *RunRunc

func (*RunRunc) Exec

Exec a process in a bundle using 'runc exec'

func (*RunRunc) Kill

func (r *RunRunc) Kill(log lager.Logger, handle string) error

Kill a bundle using 'runc kill'

func (*RunRunc) Start

func (r *RunRunc) Start(log lager.Logger, bundlePath, id string, io garden.ProcessIO) (garden.Process, error)

Starts a bundle by running 'runc' in the bundle directory

type RuncBinary

type RuncBinary interface {
	StartCommand(path, id string) *exec.Cmd
	ExecCommand(id, processJSONPath string) *exec.Cmd
	KillCommand(id, signal string) *exec.Cmd
}

type UidGenerator

type UidGenerator interface {
	Generate() string
}

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