Documentation ¶
Index ¶
- Constants
- func LookupUser(rootFsPath, userName string) (*user.ExecUser, error)
- func NewLogRunner(runner command_runner.CommandRunner, logFileGenerator generateLogFileFunc) *logRunner
- type BundleLoader
- type Creator
- type Deleter
- type EventsNotifier
- type ExecPreparer
- type ExecRunner
- type Execer
- type Killer
- type LogDir
- type LoggingCmd
- type LookupFunc
- type Mkdirer
- type OomWatcher
- type PreparedSpec
- type Process
- type ProcessTracker
- type RemoveFiles
- type RunRunc
- type RuncBinary
- type RuncCmdRunner
- type Runner
- type State
- type Stater
- type StatsNotifier
- type Statser
- type Status
- type UidGenerator
- type UserLookupper
- type WaitWatcher
- type Waiter
- type Watcher
Constants ¶
View Source
const ( DefaultUID int = 0 DefaultGID int = 0 )
View Source
const DefaultPath = "PATH=/usr/local/bin:/usr/bin:/bin"
View Source
const DefaultRootPath = "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Variables ¶
This section is empty.
Functions ¶
func NewLogRunner ¶
func NewLogRunner(runner command_runner.CommandRunner, logFileGenerator generateLogFileFunc) *logRunner
Types ¶
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func NewCreator ¶
func NewCreator(runcPath string, commandRunner command_runner.CommandRunner) *Creator
type Deleter ¶
type Deleter struct {
// contains filtered or unexported fields
}
func NewDeleter ¶
func NewDeleter(runner RuncCmdRunner, runc RuncBinary) *Deleter
type EventsNotifier ¶
type ExecPreparer ¶
type ExecPreparer interface {
Prepare(log lager.Logger, bundlePath string, spec garden.ProcessSpec) (*PreparedSpec, error)
}
func NewExecPreparer ¶
func NewExecPreparer(bundleLoader BundleLoader, userlookup UserLookupper, mkdirer Mkdirer, nonRootMaxCaps []string) ExecPreparer
type ExecRunner ¶
type Execer ¶
type Execer struct {
// contains filtered or unexported fields
}
func NewExecer ¶
func NewExecer(execPreparer ExecPreparer, runner ExecRunner) *Execer
type Killer ¶
type Killer struct {
// contains filtered or unexported fields
}
func NewKiller ¶
func NewKiller(runner RuncCmdRunner, runc RuncBinary) *Killer
type LoggingCmd ¶
type LookupFunc ¶
type OomWatcher ¶
type OomWatcher struct {
// contains filtered or unexported fields
}
func NewOomWatcher ¶
func NewOomWatcher(runner command_runner.CommandRunner, runc RuncBinary) *OomWatcher
func (*OomWatcher) WatchEvents ¶
func (r *OomWatcher) WatchEvents(log lager.Logger, handle string, eventsNotifier EventsNotifier) error
type PreparedSpec ¶
type ProcessTracker ¶
type RemoveFiles ¶
type RemoveFiles []string
func (RemoveFiles) Run ¶
func (files RemoveFiles) Run(log lager.Logger)
type RunRunc ¶
type RunRunc struct { *Execer *Creator *OomWatcher *Statser *Stater *Killer *Deleter // contains filtered or unexported fields }
da doo
func New ¶
func New(runner command_runner.CommandRunner, runcCmdRunner RuncCmdRunner, runc RuncBinary, dadooPath, runcPath string, execPreparer ExecPreparer, execRunner ExecRunner) *RunRunc
type RuncBinary ¶
type RuncBinary interface { ExecCommand(id, processJSONPath, pidFilePath string) *exec.Cmd EventsCommand(id string) *exec.Cmd StateCommand(id, logFile string) *exec.Cmd StatsCommand(id, logFile string) *exec.Cmd KillCommand(id, signal, logFile string) *exec.Cmd DeleteCommand(id, logFile string) *exec.Cmd }
type RuncCmdRunner ¶
type RuncCmdRunner interface {
RunAndLog(log lager.Logger, cmd LoggingCmd) error
}
type Stater ¶
type Stater struct {
// contains filtered or unexported fields
}
func NewStater ¶
func NewStater(runner RuncCmdRunner, runc RuncBinary) *Stater
type StatsNotifier ¶
type StatsNotifier interface {
OnStat(handle string, cpuStat garden.ContainerCPUStat, memoryStat garden.ContainerMemoryStat)
}
type Statser ¶
type Statser struct {
// contains filtered or unexported fields
}
func NewStatser ¶
func NewStatser(runner RuncCmdRunner, runc RuncBinary) *Statser
type Status ¶
type Status string
const CreatedStatus Status = "created"
const StoppedStatus Status = "stopped"
type UidGenerator ¶
type UidGenerator interface {
Generate() string
}
type UserLookupper ¶
type WaitWatcher ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter
|
This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.