Versions in this module Expand all Collapse all v0 v0.1.7 Dec 2, 2026 v0.1.6 Dec 1, 2026 Changes in this version type ExecSpec + OnKill func() v0.1.5 Nov 17, 2026 v0.1.4 Nov 3, 2026 Changes in this version type ExecResult + TimedOut bool type ExecSpec + Timeout time.Duration type Result + Cwd string + Head string + TreeClean *bool + Units map[string]int type RunArgs + Timeout string + Units map[string]int v0.1.3 Nov 2, 2026 v0.1.2 Oct 30, 2026 v0.1.1 Oct 29, 2026 v0.1.0 Oct 26, 2026 Changes in this version + var NoProviderLeft func(pool string, last error) error + var RemoteWalk func(ctx context.Context, inv Invocation, p *Prepared, provider string, ...) (Outcome, bool, error) + func ApplyHookEnv(env []string, kv []KV, bitc []string) []string + func BaseEnv(in EnvInput) ([]string, error) + func BitcVars(in EnvInput) []string + func Debugf(p *Prepared, w io.Writer, format string, a ...any) + func Main(ctx context.Context, inv Invocation) int + func TemplateVars(eff *config.Effective, pool *config.Pool, hold *admit.Hold, job string) config.Vars + func WrapArgv(eff *config.Effective, pool *config.Pool, vars config.Vars, argv []string) ([]string, error) + func WriteResult(path string, r Result) error + type EnvInput struct + Caller []string + Eff *config.Effective + Hold *admit.Hold + Job string + Pool *config.Pool + Vars config.Vars + type ExecResult struct + Code int + Interrupted syscall.Signal + StartErr error + func Exec(ctx context.Context, s ExecSpec) (ExecResult, error) + type ExecSpec struct + Argv []string + Dir string + Env []string + Grace time.Duration + MaxSignalWait time.Duration + NoHangup bool + OnSignal string + Pending chan os.Signal + Started func(pid, pgid int, leaderStart uint64) + Stderr *os.File + Stdin *os.File + Stdout *os.File + type HookCall struct + Env []string + Hook config.Hook + Kind HookKind + Pool string + Stderr io.Writer + Vars config.Vars + Worktree string + type HookKind string + const EnvHook + const PostRun + const PreRun + type Invocation struct + Args []string + Cwd string + Detached bool + Env []string + Flags config.Flags + Pending chan os.Signal + Stderr *os.File + Stdin *os.File + Stdout *os.File + type KV struct + Name string + Value string + func ParseEnvOutput(b []byte) ([]KV, error) + func RunHook(ctx context.Context, c HookCall) ([]KV, error) + type Outcome struct + Code int + Result Result + func Execute(ctx context.Context, inv Invocation, p *Prepared, stderr io.Writer) Outcome + type Prepared struct + Args RunArgs + Eff *config.Effective + Job string + Layout state.Layout + Pool *config.Pool + Redact *redact.Set + func Prepare(inv Invocation, red *redact.Set) (*Prepared, error) + func (p *Prepared) InfoWriter(w io.Writer) io.Writer + type Result struct + ExitCode int + Generation int + HoldStarted string + Job string + Origin string + Outcome string + Pool string + Provider string + Reason string + RunMS int64 + Slot int + WaitMS int64 + type RunArgs struct + Argv []string + Artifacts *[]string + Detach bool + Local bool + Log string + Name string + Pool string + Provider string + Result string + Wait string + func ParseRunArgs(args []string) (RunArgs, error) + type Signalled syscall.Signal + func (s Signalled) Error() string