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 NewLocal ¶
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)
Click to show internal directories.
Click to hide internal directories.