sourceignore package - github.com/fluxcd/pkg/sourceignore - Go Packages

View Source

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.