system

package
v0.0.0-...-8791bc1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

system contains low-level functions and classes for interacting with the base OS

Index

Constants

View Source
const (
	Tmpfs  MountType = "tmpfs"
	Proc             = "proc"
	Devpts           = "devpts"
	Bind             = "bind"
	Sys              = "sysfs"
)
View Source
const UIDMappingRange = 65536

Variables

View Source
var KrPty krPty = 0

Functions

This section is empty.

Types

type Initializer

type Initializer struct {
	Steps []StepRunner
}

func (*Initializer) Init

func (c *Initializer) Init() error

type Mount

type Mount struct {
	Type       MountType
	SourcePath string
	TargetPath string
	Flags      int
	Data       string
}

func (Mount) Mount

func (m Mount) Mount() error

type MountType

type MountType string

type NamespacingExecer

type NamespacingExecer struct {
	CommandRunner command_runner.CommandRunner
	ExtraFiles    []*os.File
	Privileged    bool

	// When User Namespaces are enabled, maps 1-MaxUID-1 UIDS, and
	// maps container root (0) to MaxUID
	MaxUID int
}

func (*NamespacingExecer) Exec

func (e *NamespacingExecer) Exec(binPath string, args ...string) (int, error)

type ProcessReaper

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

func StartReaper

func StartReaper(logger lager.Logger, waitSyscall Wait4Func) *ProcessReaper

func (*ProcessReaper) Start

func (p *ProcessReaper) Start(cmd *exec.Cmd) error

func (*ProcessReaper) Stop

func (p *ProcessReaper) Stop()

func (*ProcessReaper) Wait

func (p *ProcessReaper) Wait(cmd *exec.Cmd) byte

type RootFS

type RootFS struct {
	Root string
}

func (*RootFS) Enter

func (r *RootFS) Enter() error

type StepRunner

type StepRunner interface {
	Run() error
}

type Unmount

type Unmount struct {
	Dir string
}

func (Unmount) Unmount

func (u Unmount) Unmount() error

type Wait4Func

type Wait4Func func(pid int, wstatus *syscall.WaitStatus, options int, rusage *syscall.Rusage) (wpid int, err error)

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

Jump to

Keyboard shortcuts

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