Documentation
¶
Overview ¶
Package exec is the one place a harness operation turns argv into a process. It never interprets a shell: every element of Argv reaches the child as one literal argument, so a metacharacter is data and can start no sibling command.
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = 2 * time.Minute MaximumTimeout = 10 * time.Minute DefaultOutputLimit = 32 * 1024 MaximumOutputLimit = 1024 * 1024 TimeoutExitCode = 124 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct {
// Dir is the absolute working directory the process runs in.
Dir string
// Argv is the executable and its literal arguments. No element is parsed.
Argv []string
// Timeout bounds wall-clock time; OutputLimit bounds captured bytes.
Timeout time.Duration
OutputLimit int
}
Request is one bounded direct execution.
Click to show internal directories.
Click to hide internal directories.