Class WorkspaceMountSupport

java.lang.Object
io.agentscope.harness.agent.sandbox.WorkspaceMountSupport

public final class WorkspaceMountSupport extends Object
Helpers for BindMountEntry handling.
  • Method Details

    • bindMountRelativePaths

      public static List<String> bindMountRelativePaths(WorkspaceSpec spec)
      Returns relative workspace paths (POSIX-style, no leading slash) for every bind mount in the spec tree, in stable iteration order.
    • hasBindMounts

      public static boolean hasBindMounts(WorkspaceSpec spec)
    • containerMountPath

      public static String containerMountPath(String workspaceRoot, String entryKey)
      Absolute mount path inside the sandbox for a top-level entry key (slashes normalized).
    • tarExcludeArgsForBindMounts

      public static List<String> tarExcludeArgsForBindMounts(WorkspaceSpec spec)
      tar CLI --exclude arguments (./relative) for each bind mount path, excluding snapshot tar from traversing mount content.
    • topLevelBindMounts

      public static Map<String,BindMountEntry> topLevelBindMounts(WorkspaceSpec spec)
      Top-level BindMountEntry instances keyed by entry key, for stores that only apply flat manifest entries (Docker -v, Kubernetes HostPath).
    • normalizedHostPath

      public static String normalizedHostPath(String hostPath)
      Normalized absolute host path for Docker / Kubernetes HostPath.