Help us shape the future of Go! Take the 2026 Go Developer Survey

exec

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Scope   core.ScopeChecker
	Limiter core.Limiter
	Audit   core.AuditSink
	// ExtraEnv is appended after os.Environ(). Hosts can inject proxy vars.
	ExtraEnv []string
}

Runner is the gate-aware ProcessRunner injected into kits. It re-checks scope and rate limits for the targets a subprocess is about to touch.

func New

func New(scope core.ScopeChecker, limiter core.Limiter, audit core.AuditSink) *Runner

func NewLocal

func NewLocal(audit core.AuditSink) *Runner

NewLocal returns a runner for host-side local commands that carry no network targets (a CLI session's shell, for example). Scope enforcement is skipped because there is no target to check; audit still records the invocation when an audit sink is supplied.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, spec core.ProcessSpec) (*core.ProcessResult, error)

Jump to

Keyboard shortcuts

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