exec

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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   capkit.ScopeChecker
	Limiter capkit.Limiter
	Audit   capkit.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 capkit.ScopeChecker, limiter capkit.Limiter, audit capkit.AuditSink) *Runner

func NewLocal

func NewLocal(audit capkit.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

Jump to

Keyboard shortcuts

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