Documentation
¶
Overview ¶
Package custombait validates user-selected file bait paths and derives stable event identifiers for them.
Index ¶
- Constants
- func Excluded(path string, exclusions []string) bool
- func Label(path string) string
- func Normalize(field string, paths []string) ([]string, error)
- func Validate(path string) error
- func ValidateLayout(field string, paths, reservedLeaves, reservedDirs []string, caseFold bool) error
- func Without(paths, exclusions []string) []string
Constants ¶
View Source
const ( Pack = "custom" MaxPaths = 128 )
Variables ¶
This section is empty.
Functions ¶
func ValidateLayout ¶
func ValidateLayout(field string, paths, reservedLeaves, reservedDirs []string, caseFold bool) error
ValidateLayout rejects paths that would overlap another bait or block a reserved file or directory. Reserved directories may contain custom baits, but cannot themselves be replaced by one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.