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.
argvcwdenviron_mapinterruptmax_file_bytespolicyprefixrunnerscratchsourcestderr_limitstdout_limittimeout_ms
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 13 |
| Version | 26.7.0 |
| Revision | daab053ee433 |