Documentation
¶
Index ¶
- Constants
- func NewFactory() sandboxpkg.Factory
- func PlatformRequiresBoxsh() bool
- func Preflight(ctx context.Context, cfg PreflightConfig) error
- func RequiresBoxsh(goos string) bool
- func ResolveManagedBoxshPath(annaHome string) (string, error)
- func SandboxRoot(cfg PreflightConfig) string
- func ValidateManagedBoxshBinary(ctx context.Context, annaHome string) (string, error)
- type DirEntry
- type Edit
- type EditResult
- type ExecOptions
- type ExecResult
- type FilesystemPolicy
- type HTTPOptions
- type HTTPResult
- type HTTPStream
- type Host
- type NetworkConfig
- type Policy
- type PolicyCompatibilityError
- type PreflightConfig
- type ProcessHandle
- type ProcessRequest
- type ReadResult
- type Session
- type StatResult
- type TempFile
- type WriteResult
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 RequiresBoxsh ¶
func ResolveManagedBoxshPath ¶
func SandboxRoot ¶
func SandboxRoot(cfg PreflightConfig) string
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
Workspace string
UserDataDir 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. |
Click to show internal directories.
Click to hide internal directories.