Skip to documentation
SLOP

tiny.sandbox.Plan

Reference tiny.sandbox Plan

Defined in plan.

One execution request, borrowed for the length of the call: the slices and directory handles in it belong to the caller and have to outlive execute .

API (13)

Fields and members

Public fields and members.

No direct callersNo direct callsplanPlan
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/sandbox/src/plan.zig:12

zig
/// One execution request, borrowed for the length of the call: the slices and/// directory handles in it belong to the caller and have to outlive `execute` ./// `max_file_bytes` bounds the size of a source file copied into the layer/// during staging, and a larger file is left out of the copy and recorded as/// skipped. The same bound applies to nothing else: the child's own output and/// the hashing that builds the change set are unbounded by it.pub const Plan = struct {    scratch: sys.fs.Dir,    source: ?sys.fs.Dir = null,    argv: []const []const u8,    cwd: []const u8 = ".",    environ_map: ?*const sys.process.Environ.Map = null,    runner: audit.Runner = .staging,    policy: policy_data.Policy = .{},    prefix: []const u8 = "sandbox",    timeout_ms: u64 = 30_000,    stdout_limit: usize = 1024 * 1024,    stderr_limit: usize = 1024 * 1024,    max_file_bytes: usize = 16 * 1024 * 1024,    interrupt: command.Interrupt = .{},};

Source: lib/sandbox/src/root.zig:57

zig
pub const Plan = plan.Plan;

Audit

Definitions1
Public names2
Members13
Version26.7.0
Revisiondaab053ee433