structs

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2016 License: MPL-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// The default user that the executor uses to run tasks
	DefaultUnpriviledgedUser = "nobody"

	// CheckBufSize is the size of the check output result
	CheckBufSize = 4 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckResult added in v0.3.2

type CheckResult struct {
	ExitCode  int
	Output    string
	Timestamp time.Time
	Err       error
}

CheckResult encapsulates the result of a check

type IsolationConfig added in v0.3.0

type IsolationConfig struct {
	Cgroup      *cgroupConfig.Cgroup
	CgroupPaths map[string]string
}

IsolationConfig has information about the isolation mechanism the executor uses to put resource constraints and isolation on the user process

type RecoverableError added in v0.3.1

type RecoverableError struct {
	Err         error
	Recoverable bool
}

RecoverableError wraps an error and marks whether it is recoverable and could be retried or it is fatal.

func NewRecoverableError added in v0.3.1

func NewRecoverableError(e error, recoverable bool) *RecoverableError

NewRecoverableError is used to wrap an error and mark it as recoverable or not.

func (*RecoverableError) Error added in v0.3.1

func (r *RecoverableError) Error() string

type WaitResult

type WaitResult struct {
	ExitCode int
	Signal   int
	Err      error
}

WaitResult stores the result of a Wait operation.

func NewWaitResult

func NewWaitResult(code, signal int, err error) *WaitResult

func (*WaitResult) String

func (r *WaitResult) String() string

func (*WaitResult) Successful

func (r *WaitResult) Successful() bool

Jump to

Keyboard shortcuts

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