Class BindMountEntry
java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.BindMountEntry
Declares a host directory (or file on Kubernetes) bind-mounted into the sandbox workspace at
the map key path under
WorkspaceSpec.getRoot().
The WorkspaceSpec entry key is
the relative path inside the workspace (for example key cache →
<workspaceRoot>/cache). The hostPath is an absolute path on the host (Docker)
or on the Kubernetes node (HostPath volume).
Backends: DockerSandbox
passes -v host:container; kubernetes
uses a HostPath volume + volumeMount. Cloud sandboxes (Daytona, E2B) ignore this entry at
runtime (see logs); use projection or provider-specific mounts there instead.
Security: bind mounts expose host paths to sandbox workloads; only mount paths you trust the model and tools to read or modify.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetHostPath(String hostPath) voidsetReadOnly(boolean readOnly) Methods inherited from class io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
isEphemeral, setEphemeral
-
Constructor Details
-
BindMountEntry
public BindMountEntry()
-
-
Method Details
-
getHostPath
-
setHostPath
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
public void setReadOnly(boolean readOnly)
-