Documentation
¶
Overview ¶
Package artifact defines the shared filesystem layout for snapshot artifacts.
Index ¶
- func ResolveContentRoot(basePath, contentUID string) (string, error)
- func ResolveRoot(basePath string) (string, error)
- func ValidateBasePath(basePath string) error
- func ValidateContainment(root, target string) error
- func ValidateDirectory(path string) error
- func ValidatePathElement(label, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveContentRoot ¶
ResolveContentRoot returns the complete filesystem root owned by one immutable content UID.
func ResolveRoot ¶
ResolveRoot returns the reserved directory containing all content roots.
func ValidateBasePath ¶
ValidateBasePath accepts only a clean absolute path other than the filesystem root.
func ValidateContainment ¶
ValidateContainment proves that target is root itself or a child of root.
func ValidateDirectory ¶
ValidateDirectory verifies that path is an ordinary directory, not a symlink.
func ValidatePathElement ¶
ValidatePathElement rejects traversal and path separators while accepting Kubernetes UIDs and container names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.