volumepath

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

View Source
const MaxSegments = 16

MaxSegments bounds the depth of a projected path.

Variables

This section is empty.

Functions

func ValidateProjected

func ValidateProjected(p string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL