package
Version:
v0.0.0-...-3f891a8
Opens a new window with list of versions in this module.
Published: Aug 19, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
MatchHidden matches paths with a basename
that begins with a dot.
type Checker interface {
Check(path string) bool
}
Checker is a Rules checker.
type Drive struct {
Name string `json:"name"`
Path string `json:"path"`
Icon string `json:"icon"`
}
Drive for mountpoint
type Regexp struct {
Raw string `json:"raw"`
}
Regexp is a wrapper to the native regexp type where we
save the raw expression.
MatchString checks if a string matches the regexp.
type Rule struct {
Regex bool `json:"regex"`
Allow bool `json:"allow"`
Path string `json:"path"`
Regexp *Regexp `json:"regexp"`
}
Rule is a allow/disallow rule.
Matches matches a path against a rule.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.