Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCleanupTimeout = time.Second
View Source
const MaxArgumentBytes = 64 << 10
View Source
const MaxArguments = 256
View Source
const MaxCleanupTimeout = 30 * time.Second
View Source
const MaxEnvironment = 128
View Source
const MaxEnvironmentBytes = 64 << 10
View Source
const MaxInputBytes = 1 << 20
View Source
const MaxOutputBytes = 16 << 20
View Source
const MaxPathBytes = 4 << 10
View Source
const MaxTimeout = 30 * time.Minute
Variables ¶
View Source
var ErrCancelled = errors.New("process execution cancelled")
View Source
var ErrCleanup = errors.New("process cleanup failed")
View Source
var ErrDeadline = errors.New("process execution deadline exceeded")
View Source
var ErrExit = errors.New("process exited unsuccessfully")
View Source
var ErrInvalid = errors.New("invalid process command")
View Source
var ErrOutputLimit = errors.New("process output exceeds its bound")
View Source
var ErrOwnership = errors.New("process ownership failed")
View Source
var ErrStart = errors.New("process start failed")
View Source
var ErrUnsupported = errors.New("process-tree ownership is unsupported")
Functions ¶
func DispatchWatchdog ¶
Types ¶
type Outcome ¶
type Outcome string
const OutcomeCancelled Outcome = "cancelled"
const OutcomeCleanupFailure Outcome = "cleanup_failure"
const OutcomeCompleted Outcome = "completed"
const OutcomeDeadline Outcome = "deadline"
const OutcomeExitFailure Outcome = "exit_failure"
const OutcomeInvalid Outcome = "invalid"
const OutcomeOutputLimit Outcome = "output_limit"
const OutcomeOwnershipFailure Outcome = "ownership_failure"
const OutcomeStartFailure Outcome = "start_failure"
const OutcomeUnsupported Outcome = "unsupported"
Click to show internal directories.
Click to hide internal directories.