sourceignore package - github.com/fluxcd/pkg/sourceignore - Go Packages
- Constants
- func DefaultPatterns(domain []string) []gitignore.Pattern
- func LoadIgnorePatterns(dir string, domain []string) ([]gitignore.Pattern, error)
- func NewDefaultMatcher(ps []gitignore.Pattern, domain []string) gitignore.Matcher
- func NewMatcher(ps []gitignore.Pattern) gitignore.Matcher
- func ReadIgnoreFile(path string, domain []string) ([]gitignore.Pattern, error)
- func ReadPatterns(reader io.Reader, domain []string) []gitignore.Pattern
- func VCSPatterns(domain []string) []gitignore.Pattern
const ( IgnoreFile = ".sourceignore" ExcludeVCS = ".git/,.gitignore,.gitmodules,.gitattributes" ExcludeExt = "*.jpg,*.jpeg,*.gif,*.png,*.wmv,*.flv,*.tar.gz,*.zip" ExcludeCI = "" )
This section is empty.
DefaultPatterns returns a gitignore.Pattern slice with the default ExcludeExt, ExcludeCI, ExcludeExtra patterns.
LoadIgnorePatterns recursively loads the IgnoreFile patterns found in the directory.
NewDefaultMatcher returns a gitignore.Matcher with the DefaultPatterns as lowest priority patterns.
NewMatcher returns a gitignore.Matcher for the given gitignore.Pattern slice. It mainly exists to compliment the API.
ReadIgnoreFile attempts to read the file at the given path and returns the read patterns.
ReadPatterns collects ignore patterns from the given reader and returns them as a gitignore.Pattern slice. If a domain is supplied, this is used as the scope of the read patterns.
VCSPatterns returns a gitignore.Pattern slice with ExcludeVCS patterns.
This section is empty.