Versions in this module Expand all Collapse all v6 v6.1.0 Apr 24, 2021 Changes in this version + var ErrInvalidAttributeName = errors.New("Invalid attribute name") + var ErrMacroNotAllowed = errors.New("macro not allowed") + type Attribute interface + IsSet func() bool + IsUnset func() bool + IsUnspecified func() bool + IsValueSet func() bool + Name func() string + String func() string + Value func() string + type MatchAttribute struct + Attributes []Attribute + Name string + Pattern Pattern + func LoadGlobalPatterns(fs billy.Filesystem) (attributes []MatchAttribute, err error) + func LoadSystemPatterns(fs billy.Filesystem) (attributes []MatchAttribute, err error) + func ParseAttributesLine(line string, domain []string, allowMacro bool) (m MatchAttribute, err error) + func ReadAttributes(r io.Reader, domain []string, allowMacro bool) (attributes []MatchAttribute, err error) + func ReadAttributesFile(fs billy.Filesystem, path []string, attributesFile string, allowMacro bool) ([]MatchAttribute, error) + func ReadPatterns(fs billy.Filesystem, path []string) (attributes []MatchAttribute, err error) + type Matcher interface + Match func(path []string, attributes []string) (map[string]Attribute, bool) + func NewMatcher(stack []MatchAttribute) Matcher + type MatcherOptions struct + type Pattern interface + Match func(path []string) bool + func ParsePattern(p string, domain []string) Pattern Other modules containing this package github.com/egibert/go-git github.com/egibert/go-git/v5 github.com/egibert/go-git/v8