Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver checks paths against allow/deny lists.
func NewResolver ¶
NewResolver creates a Resolver. allowDirs are canonicalized at construction time. If allowDirs is empty, all paths are allowed (canonicalization only). denyPatterns support doublestar glob syntax.
func (*Resolver) DenyPatterns ¶
DenyPatterns returns the deny pattern list.
Click to show internal directories.
Click to hide internal directories.