Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Isolator ¶
Isolator runs caller code in an isolated environment and returns its result. An error is returned only for infrastructure failures (e.g. interpreter not found); a non-zero exit of the executed code is a normal Result, not an error.
type Noop ¶
Noop is a deterministic isolator used for unit tests of surrounding logic. It does not execute anything; it echoes a fixed result derived from the request.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process runs each request as a python subprocess inside the locked container: an ephemeral tmpdir as cwd, its own process-group (so timeouts kill all children), and a shared cap on combined stdout+stderr. Network/privilege isolation is enforced by how the container/pod is launched (see quickstart), not inside this process.