Documentation
¶
Index ¶
- Constants
- func SymlinkAmbiguityError(filePath string) error
- func UnlistedFileError(filePath string) error
- func ValidateArchivePath(raw string, isDir bool) (string, error)
- func ValidateArchivePaths(paths []string) (map[string]struct{}, error)
- func ValidateListedPaths(paths []string) (map[string]struct{}, error)
- func ValidatePath(raw string) (string, error)
Constants ¶
View Source
const ( ErrorCodePathInvalid = "structure.path_invalid" ErrorCodePathAmbiguous = "structure.path_ambiguous" ErrorCodePathDuplicate = "structure.path_duplicate" ErrorCodeUnlistedFile = "structure.unlisted_file" ErrorCodeSymlinkAmbiguous = "structure.symlink_ambiguous" )
Variables ¶
This section is empty.
Functions ¶
func SymlinkAmbiguityError ¶
func UnlistedFileError ¶
func ValidateArchivePath ¶
ValidateArchivePath validates an observed archive entry path and returns the portable key used for duplicate and membership checks.
func ValidateArchivePaths ¶
ValidateArchivePaths applies the same normalization rules to archive entry names and rejects aliases before callers read entry contents.
func ValidateListedPaths ¶
ValidateListedPaths validates manifest paths and returns their normalized, slash-separated names. Strict verification requires callers to use the returned names for comparisons rather than platform-specific path cleaning.
func ValidatePath ¶
ValidatePath validates an observed file path and returns the portable key used for duplicate and membership checks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.