sandbox

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkDisabled  = sandboxpkg.NetworkDisabled
	NetworkAllowAll  = sandboxpkg.NetworkAllowAll
	NetworkWhitelist = sandboxpkg.NetworkWhitelist
)

Variables

This section is empty.

Functions

func IsPolicyCompatibilityError

func IsPolicyCompatibilityError(err error) bool

func NewCoreTools

func NewCoreTools(host Host, toolsBinDir, projectRoot string) []tools.Tool

NewCoreTools returns the unified host-backed core tools.

func PlatformRequiresBoxsh

func PlatformRequiresBoxsh() bool

func PlatformSupportsBoxsh

func PlatformSupportsBoxsh() bool

Types

type DirEntry

type DirEntry = sandboxpkg.DirEntry

type Edit

type Edit = sandboxpkg.Edit

type EditResult

type EditResult = sandboxpkg.EditResult

type ExecOptions

type ExecOptions = sandboxpkg.ExecOptions

type ExecResult

type ExecResult = sandboxpkg.ExecResult

type Factory

type Factory = sandboxpkg.Factory

type FilesystemPolicy

type FilesystemPolicy = sandboxpkg.FilesystemPolicy

type HTTPOptions

type HTTPOptions = sandboxpkg.HTTPOptions

type HTTPResult

type HTTPResult = sandboxpkg.HTTPResult

type HTTPStream

type HTTPStream = sandboxpkg.HTTPStream

type Host

type Host = sandboxpkg.Host

type LineOrientedReaderHost

type LineOrientedReaderHost interface {
	Host
	ReadFileLines(ctx context.Context, path string, offset, limit int) (ReadResult, error)
	ReadAllFile(ctx context.Context, path string) ([]byte, error)
}

type NetworkMode

type NetworkMode = sandboxpkg.NetworkMode

type NetworkPolicy

type NetworkPolicy = sandboxpkg.NetworkPolicy

type Policy

type Policy = sandboxpkg.Policy

type PolicyCompatibilityError

type PolicyCompatibilityError = sandboxpkg.PolicyCompatibilityError

type ProcessHandle

type ProcessHandle = sandboxpkg.ProcessHandle

type ProcessPolicy

type ProcessPolicy = sandboxpkg.ProcessPolicy

type ProcessRequest

type ProcessRequest = sandboxpkg.ProcessRequest

type ReadResult

type ReadResult = sandboxpkg.ReadResult

type Registry

type Registry = sandboxpkg.Registry

func DefaultRegistry

func DefaultRegistry() *Registry

func GlobalRegistry

func GlobalRegistry() *Registry

func NewRegistry

func NewRegistry() *Registry

type Session

type Session = sandboxpkg.Session

func NopSession

func NopSession() Session

type StatResult

type StatResult = sandboxpkg.StatResult

type TempFile

type TempFile = sandboxpkg.TempFile

type WriteResult

type WriteResult = sandboxpkg.WriteResult

Jump to

Keyboard shortcuts

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