Class BindMountEntry

java.lang.Object
io.agentscope.harness.agent.sandbox.layout.WorkspaceEntry
io.agentscope.harness.agent.sandbox.layout.BindMountEntry

public class BindMountEntry extends WorkspaceEntry
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 Details

    • BindMountEntry

      public BindMountEntry()
  • Method Details

    • getHostPath

      public String getHostPath()
    • setHostPath

      public void setHostPath(String hostPath)
    • isReadOnly

      public boolean isReadOnly()
    • setReadOnly

      public void setReadOnly(boolean readOnly)