boxsh

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  = boxshclient.NetworkDisabled
	NetworkAllowAll  = boxshclient.NetworkAllowAll
	NetworkWhitelist = boxshclient.NetworkWhitelist
)
View Source
const BoxshBinaryName = "boxsh"

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() sandboxpkg.Factory

func PlatformRequiresBoxsh

func PlatformRequiresBoxsh() bool

func Preflight

func Preflight(ctx context.Context, cfg PreflightConfig) error

func RequiresBoxsh

func RequiresBoxsh(goos string) bool

func ResolveManagedBoxshPath

func ResolveManagedBoxshPath(annaHome string) (string, error)

func ValidateManagedBoxshBinary

func ValidateManagedBoxshBinary(ctx context.Context, annaHome string) (string, error)

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 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 NetworkConfig

type NetworkConfig = boxshclient.NetworkConfig

type Policy

type Policy = sandboxpkg.Policy

type PolicyCompatibilityError

type PolicyCompatibilityError = sandboxpkg.PolicyCompatibilityError

type PreflightConfig

type PreflightConfig struct {
	AnnaHome string
	UserRoot string
	Network  NetworkConfig
}

func (PreflightConfig) Validate

func (c PreflightConfig) Validate() error

type ProcessHandle

type ProcessHandle = sandboxpkg.ProcessHandle

type ProcessRequest

type ProcessRequest = sandboxpkg.ProcessRequest

type ReadResult

type ReadResult = sandboxpkg.ReadResult

type Session

type Session = sandboxpkg.Session

type StatResult

type StatResult = sandboxpkg.StatResult

type TempFile

type TempFile = sandboxpkg.TempFile

type WriteResult

type WriteResult = sandboxpkg.WriteResult

Directories

Path Synopsis
Package boxshclient provides a JSON-RPC client for the boxsh sandbox process.
Package boxshclient provides a JSON-RPC client for the boxsh sandbox process.

Jump to

Keyboard shortcuts

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