Documentation
¶
Overview ¶
Package vpath resolves user-supplied paths under a virtual workspace root without consulting the host filesystem. The server process cannot evaluate symlinks inside a workspace it does not mount, so containment is decided purely on the cleaned path shape. Shared by the ACP runtime and the workdir service so the clamping semantics cannot drift between them.
Index ¶
Constants ¶
const DataMount = "/data"
DataMount is the canonical mount point of the workspace data volume as seen from inside a bot container.
Variables ¶
This section is empty.
Functions ¶
func ResolveUnderRoot ¶
ResolveUnderRoot resolves raw against root and rejects any result that escapes it. A raw path under DataMount is remapped onto root first, so callers may pass container-view paths even when root is a host-side staging directory.
Types ¶
This section is empty.