tiny.sandbox.backendPolicyFromName
Defined in backend.
Source
Source: lib/sandbox/src/backend.zig:9
zig
pub fn policyFromName(value: []const u8) ?Policy { if (nameMatches(value, "require-strongest")) return .require_strongest; if (nameMatches(value, "require_strongest")) return .require_strongest; if (nameMatches(value, "prefer-strongest")) return .prefer_strongest; if (nameMatches(value, "prefer_strongest")) return .prefer_strongest; if (nameMatches(value, "portable-only")) return .portable_only; if (nameMatches(value, "portable_only")) return .portable_only; return null;}Source: lib/sandbox/src/root.zig:65
zig
pub const backendPolicyFromName = backend.policyFromName;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |