EgressOverrideDeps
Defined in: src/egress.ts:558
Deps for egressMembraneOverrideFlags (extends PathProbeDeps).
Extends
Section titled “Extends”Properties
Section titled “Properties”exists?
Section titled “exists?”
optionalexists?: (p) =>boolean
Defined in: src/sandbox.ts:69
Existence probe; default fs.existsSync.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”isSymlink?
Section titled “isSymlink?”
optionalisSymlink?: (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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”boolean
readdir?
Section titled “readdir?”
optionalreaddir?: (p) =>string[]
Defined in: src/sandbox.ts:71
Directory listing; default a safe readdirSync wrapper returning [] on error.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
Inherited from
Section titled “Inherited from”realpath?
Section titled “realpath?”
optionalrealpath?: (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.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string
optionalrun?: (cmd,args) =>object
Defined in: src/sandbox.ts:67
Run a command; default uses the repo-wrapped execFileSync. Returns its exit status.
Parameters
Section titled “Parameters”string
string[]
Returns
Section titled “Returns”object
status
Section titled “status”status:
number