Versions in this module Expand all Collapse all v0 v0.0.42 Nov 23, 2026 Changes in this version + const DefaultHostFileReadBytes + const DefaultWorkspaceMountPoint + const LogExecError + const LogExecFinish + const LogExecStart + const LogStderr + const LogStdout + const MethodDelete + const MethodGet + const MethodHead + const MethodOptions + const MethodPatch + const MethodPost + const MethodPut + const ShellVariantAuto + const ShellVariantBash + const ShellVariantBats + const ShellVariantMksh + const ShellVariantSH + const ShellVariantZsh + const TraceOff + const TraceRaw + const TraceRedacted + func DefaultRegistry() *commands.Registry + type Config struct + AnalysisObserver analysis.Observer + BaseEnv map[string]string + CompatHostRoots []string + FileSystem FileSystemConfig + Host host.Adapter + LimitOverrides policy.Limits + Logger LogCallback + Network *NetworkConfig + NetworkClient network.Client + Policy policy.Policy + Registry commands.CommandRegistry + Tracing TraceConfig + type ExecutionRequest struct + Args []string + Env map[string]string + Interactive bool + Interpreter string + MaxSpillBytes int64 + Name string + PassthroughArgs []string + ReplaceEnv bool + Script string + ScriptPath string + ShellVariant ShellVariant + SpillDir string + StartupOptions []string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Timeout time.Duration + WorkDir string + type ExecutionResult struct + ControlStderr string + Duration time.Duration + Events []trace.Event + ExitCode int + FinalEnv map[string]string + FinishedAt time.Time + ShellExited bool + StartedAt time.Time + Stderr string + StderrSpillPath string + StderrSpillTruncated bool + StderrTruncated bool + Stdout string + StdoutSpillPath string + StdoutSpillTruncated bool + StdoutTruncated bool + TimedOut bool + type FileSystemConfig struct + Factory gbfs.Factory + WorkingDir string + func CustomFileSystem(factory gbfs.Factory, workingDir string) FileSystemConfig + func HostDirectoryFileSystem(root string, opts HostDirectoryOptions) FileSystemConfig + func InMemoryFileSystem() FileSystemConfig + func MountableFileSystem(opts MountableFileSystemOptions) FileSystemConfig + func ReadWriteDirectoryFileSystem(root string, opts ReadWriteDirectoryOptions) FileSystemConfig + func SeededInMemoryFileSystem(files gbfs.InitialFiles) FileSystemConfig + type HostDirectoryOptions struct + MaxFileReadBytes int64 + MountPoint string + type InteractiveRequest struct + Args []string + Env map[string]string + Name string + ReplaceEnv bool + ShellVariant ShellVariant + StartupOptions []string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + WorkDir string + type InteractiveResult struct + ExitCode int + type LogCallback = internalruntime.LogCallback + type LogEvent = internalruntime.LogEvent + type LogKind = internalruntime.LogKind + type Method = network.Method + type MountableFileSystemOptions struct + Base gbfs.Factory + Mounts []gbfs.MountConfig + WorkingDir string + type NetworkConfig struct + AllowedMethods []Method + AllowedURLPrefixes []string + DenyPrivateRanges bool + MaxRedirects int + MaxResponseBytes int64 + Timeout time.Duration + type Option func(*Config) error + func WithAnalysisObserver(observer analysis.Observer) Option + func WithBaseEnv(env map[string]string) Option + func WithCompatHostRoots(roots ...string) Option + func WithConfig(cfg *Config) Option + func WithFileSystem(cfg FileSystemConfig) Option + func WithHTTPAccess(prefixes ...string) Option + func WithHost(adapter host.Adapter) Option + func WithLimitOverrides(overrides policy.Limits) Option + func WithLogger(callback LogCallback) Option + func WithNetwork(cfg *NetworkConfig) Option + func WithNetworkClient(client network.Client) Option + func WithPolicy(p policy.Policy) Option + func WithRegistry(registry commands.CommandRegistry) Option + func WithTracing(cfg TraceConfig) Option + func WithWorkingDir(dir string) Option + func WithWorkspace(dir string) Option + type ReadWriteDirectoryOptions struct + MaxFileReadBytes int64 + type Runtime struct + func New(opts ...Option) (*Runtime, error) + func (r *Runtime) NewSession(ctx context.Context) (*Session, error) + func (r *Runtime) Run(ctx context.Context, req *ExecutionRequest) (*ExecutionResult, error) + type Session struct + func (s *Session) Exec(ctx context.Context, req *ExecutionRequest) (*ExecutionResult, error) + func (s *Session) FileSystem() gbfs.FileSystem + func (s *Session) Interact(ctx context.Context, req *InteractiveRequest) (*InteractiveResult, error) + func (s *Session) Limits() policy.Limits + type ShellVariant = shellvariant.ShellVariant + type TraceConfig = internalruntime.TraceConfig + type TraceMode = internalruntime.TraceMode