runrunc

package
v0.0.0-...-499d384 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2015 License: MIT, Apache-2.0 Imports: 11 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, signaller process_tracker.Signaller) (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

func (r *RunRunc) Exec(id string, spec garden.ProcessSpec, io garden.ProcessIO) (garden.Process, error)

Exec a process in a bundle using 'runc exec'

func (*RunRunc) Kill

func (r *RunRunc) Kill(bundlePath string) error

Kill a bundle using 'runc kill'

func (*RunRunc) Start

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

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

func (RunRunc) WithLogSession

func (r RunRunc) WithLogSession(sess log.ChainLogger) *RunRunc

type RuncBinary

type RuncBinary interface {
	StartCommand(path, id string) *exec.Cmd
	ExecCommand(id, processJSONPath 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 This file was generated by counterfeiter
This file was generated by counterfeiter 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