Documentation
¶
Overview ¶
Package volumepath holds the rule for the relative paths at which substrate projects files into an actor's volumes. ateapi applies it when an ActorTemplate is created and atelet applies it again before writing to the host filesystem; both call this one implementation so the two cannot drift.
Index ¶
Constants ¶
const MaxSegments = 16
MaxSegments bounds the depth of a projected path.
Variables ¶
This section is empty.
Functions ¶
func ValidateProjected ¶
ValidateProjected reports why p is not acceptable as the path of a file projected into a volume, relative to the volume root. p must be non-empty, contain no NUL byte, and split on '/' into at most MaxSegments segments, none of which is "", "." or "..". Any other byte is allowed: Linux paths are bytes, not text, so Unicode in any encoding passes.
Types ¶
This section is empty.