Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FalsePathMatcher ¶ added in v1.2.11
type FalsePathMatcher struct{}
FalsePathMatcher always returns false when matching paths
func (FalsePathMatcher) ID ¶ added in v1.2.11
func (m FalsePathMatcher) ID() string
func (FalsePathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.11
func (m FalsePathMatcher) IsDirOrSubmodulePathMatched(_ string) bool
func (FalsePathMatcher) IsPathMatched ¶ added in v1.2.11
func (m FalsePathMatcher) IsPathMatched(_ string) bool
func (FalsePathMatcher) ShouldGoThrough ¶ added in v1.2.11
func (m FalsePathMatcher) ShouldGoThrough(_ string) bool
func (FalsePathMatcher) String ¶ added in v1.2.11
func (m FalsePathMatcher) String() string
type MultiPathMatcher ¶ added in v1.2.5
type MultiPathMatcher struct {
// contains filtered or unexported fields
}
func (MultiPathMatcher) ID ¶ added in v1.2.11
func (m MultiPathMatcher) ID() string
func (MultiPathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (m MultiPathMatcher) IsDirOrSubmodulePathMatched(path string) bool
func (MultiPathMatcher) IsPathMatched ¶ added in v1.2.8
func (m MultiPathMatcher) IsPathMatched(path string) bool
func (MultiPathMatcher) ShouldGoThrough ¶ added in v1.2.8
func (m MultiPathMatcher) ShouldGoThrough(path string) bool
ShouldGoThrough returns true if the ShouldGoThrough method of at least one matcher returns true and the path partially or completely matched by others (IsDirOrSubmodulePathMatched returns true)
func (MultiPathMatcher) String ¶ added in v1.2.5
func (m MultiPathMatcher) String() string
type PathMatcher ¶
type PathMatcher interface { // IsPathMatched checks for a complete matching of the path IsPathMatched(string) bool // ShouldGoThrough indicates that the directory or submodule path is not completely matched but may include matching files among the child files. // The method returns false if the path is completely matched. ShouldGoThrough(string) bool // IsDirOrSubmodulePathMatched returns true if IsPathMatched or ShouldGoThrough. // The method returns true if there is a possibility of containing the matching files among the child files. IsDirOrSubmodulePathMatched(string) bool // ID returns string that unambiguously defines the path matcher ID() string String() string }
func NewFalsePathMatcher ¶ added in v1.2.11
func NewFalsePathMatcher() PathMatcher
func NewMultiPathMatcher ¶ added in v1.2.5
func NewMultiPathMatcher(matchers ...PathMatcher) PathMatcher
func NewPathMatcher ¶ added in v1.2.11
func NewPathMatcher(options PathMatcherOptions) PathMatcher
func NewTruePathMatcher ¶ added in v1.2.11
func NewTruePathMatcher() PathMatcher
type PathMatcherOptions ¶ added in v1.2.11
type PathMatcherOptions struct { BasePath string IncludeGlobs []string ExcludeGlobs []string DockerignorePatterns []string Matchers []PathMatcher }
type TruePathMatcher ¶ added in v1.2.11
type TruePathMatcher struct{}
TruePathMatcher always returns true when matching paths
func (TruePathMatcher) ID ¶ added in v1.2.11
func (m TruePathMatcher) ID() string
func (TruePathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.11
func (m TruePathMatcher) IsDirOrSubmodulePathMatched(_ string) bool
func (TruePathMatcher) IsPathMatched ¶ added in v1.2.11
func (m TruePathMatcher) IsPathMatched(_ string) bool
func (TruePathMatcher) ShouldGoThrough ¶ added in v1.2.11
func (m TruePathMatcher) ShouldGoThrough(_ string) bool
func (TruePathMatcher) String ¶ added in v1.2.11
func (m TruePathMatcher) String() string
Click to show internal directories.
Click to hide internal directories.