Class WorkspaceMountSupport
java.lang.Object
io.agentscope.harness.agent.sandbox.WorkspaceMountSupport
Helpers for
BindMountEntry handling.-
Method Summary
Modifier and TypeMethodDescriptionReturns relative workspace paths (POSIX-style, no leading slash) for every bind mount in the spec tree, in stable iteration order.static StringcontainerMountPath(String workspaceRoot, String entryKey) Absolute mount path inside the sandbox for a top-level entry key (slashes normalized).static booleanhasBindMounts(WorkspaceSpec spec) static StringnormalizedHostPath(String hostPath) Normalized absolute host path for Docker / Kubernetes HostPath.tarCLI--excludearguments (./relative) for each bind mount path, excluding snapshot tar from traversing mount content.static Map<String,BindMountEntry> Top-levelBindMountEntryinstances keyed by entry key, for stores that only apply flat manifest entries (Docker-v, Kubernetes HostPath).
-
Method Details
-
bindMountRelativePaths
Returns relative workspace paths (POSIX-style, no leading slash) for every bind mount in the spec tree, in stable iteration order. -
hasBindMounts
-
containerMountPath
Absolute mount path inside the sandbox for a top-level entry key (slashes normalized). -
tarExcludeArgsForBindMounts
tarCLI--excludearguments (./relative) for each bind mount path, excluding snapshot tar from traversing mount content. -
topLevelBindMounts
Top-levelBindMountEntryinstances keyed by entry key, for stores that only apply flat manifest entries (Docker-v, Kubernetes HostPath). -
normalizedHostPath
Normalized absolute host path for Docker / Kubernetes HostPath.
-