local

package
v0.16.0 Latest Latest
Warning

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

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

Documentation

Overview

WARNING: commands run directly on the host OS with limited hardening only. Hardening layers applied: process-group isolation on Unix, rlimits on Linux, bwrap/unshare network isolation on Linux. macOS local execution currently runs without additional OS sandboxing. Use the docker backend when full container isolation is required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() sandboxpkg.Factory

NewFactory returns a Factory for the local backend.

Types

type Factory added in v0.15.0

type Factory struct{}

Factory creates local sandbox sessions that run directly on the host OS.

func (*Factory) Available added in v0.15.0

func (f *Factory) Available() bool

Available always returns true — the local backend has no external dependencies.

func (*Factory) CreateSession added in v0.15.0

func (f *Factory) CreateSession(_ context.Context, policy sandboxpkg.Policy) (sandboxpkg.Session, error)

CreateSession creates a new localSession.

func (*Factory) Name added in v0.15.0

func (f *Factory) Name() string

Name returns the backend name.

func (*Factory) Supported added in v0.15.0

func (f *Factory) Supported(_ sandboxpkg.Policy) error

Supported always returns nil — the local backend can satisfy any policy.

Jump to

Keyboard shortcuts

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