Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(slug string, constructor MatcherConstructor) error
Register adds a matcher to the registry.
Types ¶
type Feeder ¶
type Feeder struct {
// contains filtered or unexported fields
}
Feeder feeds files.
type GlobMatcherConfig ¶
type GlobMatcherConfig struct { // Pattern is the glob pattern used by the matcher. Pattern string `yaml:"pattern"` }
GlobMatcherConfig describes the configuration of a GlobMatcher.
type Matcher ¶
Matcher matches a file based on a path criteria.
func GlobMatcher ¶
func GlobMatcher(configData interface{}) Matcher
GlobMatcher creates a new Matcher that accepts files based on glob pattern.
func NotMatcher ¶
func NotMatcher(configData interface{}) Matcher
NotMatcher creates a new Matcher that reverses the decision of matcher.
type MatcherConstructor ¶
type MatcherConstructor func(configData interface{}) Matcher
MatcherConstructor constructs Matcher instances.
type NotMatcherConfig ¶
type NotMatcherConfig struct { // Type is the type of the negated matcher. Type string `yaml:"type"` // Config is the configuration of the negated matcher. Config interface{} `yaml:"config"` }
NotMatcherConfig describes the configuration of a NotMatcher.
Click to show internal directories.
Click to hide internal directories.