Skip to content

EgressOverrideDeps

Defined in: src/egress.ts:558

Deps for egressMembraneOverrideFlags (extends PathProbeDeps).

optional exists?: (p) => boolean

Defined in: src/sandbox.ts:69

Existence probe; default fs.existsSync.

string

boolean

PathProbeDeps.exists


optional isSymlink?: (p) => boolean

Defined in: src/egress.ts:568

Returns true when the path is a symlink (default: lstatSync().isSymbolicLink()). Injectable so tests can simulate symlinked vs plain /etc/resolv.conf.

string

boolean


optional readdir?: (p) => string[]

Defined in: src/sandbox.ts:71

Directory listing; default a safe readdirSync wrapper returning [] on error.

string

string[]

PathProbeDeps.readdir


optional realpath?: (p) => string

Defined in: src/egress.ts:563

realpath implementation (default: safeRealpath from sandbox.ts). Receives the path to resolve; returns the realpath or the input on error.

string

string


optional run?: (cmd, args) => object

Defined in: src/sandbox.ts:67

Run a command; default uses the repo-wrapped execFileSync. Returns its exit status.

string

string[]

object

status: number

PathProbeDeps.run