structure

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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 SymlinkAmbiguityError(filePath string) error

func UnlistedFileError

func UnlistedFileError(filePath string) error

func ValidateArchivePath

func ValidateArchivePath(raw string, isDir bool) (string, error)

ValidateArchivePath validates an observed archive entry path and returns the portable key used for duplicate and membership checks.

func ValidateArchivePaths

func ValidateArchivePaths(paths []string) (map[string]struct{}, error)

ValidateArchivePaths applies the same normalization rules to archive entry names and rejects aliases before callers read entry contents.

func ValidateListedPaths

func ValidateListedPaths(paths []string) (map[string]struct{}, error)

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

func ValidatePath(raw string) (string, error)

ValidatePath validates an observed file path and returns the portable key used for duplicate and membership checks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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