tiny.sandbox.plan
Defined in tiny.sandbox.
API (1)
Types and contracts
Public types and contracts.
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 outliveexecute.
Source
Source: lib/sandbox/src/plan.zig
zig
const sys = @import("sys");const audit = @import("audit.zig");const command = @import("command.zig");const policy_data = @import("policy.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:38
zig
pub const plan = @import("plan.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |