Documentation ¶
Index ¶
- type DockerfileIgnorePathMatcher
- func (f *DockerfileIgnorePathMatcher) BaseFilepath() string
- func (f *DockerfileIgnorePathMatcher) IsDirOrSubmodulePathMatched(path string) bool
- func (f *DockerfileIgnorePathMatcher) IsPathMatched(path string) bool
- func (f *DockerfileIgnorePathMatcher) ShouldGoThrough(path string) bool
- func (f *DockerfileIgnorePathMatcher) String() string
- func (f *DockerfileIgnorePathMatcher) TrimFileBaseFilepath(path string) string
- type GitMappingPathMatcher
- func (f *GitMappingPathMatcher) BaseFilepath() string
- func (f *GitMappingPathMatcher) IsDirOrSubmodulePathMatched(path string) bool
- func (f *GitMappingPathMatcher) IsPathMatched(path string) bool
- func (f *GitMappingPathMatcher) ShouldGoThrough(path string) bool
- func (f *GitMappingPathMatcher) String() string
- func (f *GitMappingPathMatcher) TrimFileBaseFilepath(path string) string
- type MultiPathMatcher
- func (m *MultiPathMatcher) BaseFilepath() string
- func (f *MultiPathMatcher) IsDirOrSubmodulePathMatched(path string) bool
- func (m *MultiPathMatcher) IsPathMatched(path string) bool
- func (m *MultiPathMatcher) ShouldGoThrough(path string) bool
- func (m *MultiPathMatcher) String() string
- func (m *MultiPathMatcher) TrimFileBaseFilepath(path string) string
- type PathMatcher
- type SimplePathMatcher
- func (f *SimplePathMatcher) BaseFilepath() string
- func (f *SimplePathMatcher) IsDirOrSubmodulePathMatched(path string) bool
- func (f *SimplePathMatcher) IsPathMatched(path string) bool
- func (f *SimplePathMatcher) Paths() []string
- func (f *SimplePathMatcher) ShouldGoThrough(path string) bool
- func (f *SimplePathMatcher) String() string
- func (f *SimplePathMatcher) TrimFileBaseFilepath(path string) string
- type StubPathMatcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerfileIgnorePathMatcher ¶
type DockerfileIgnorePathMatcher struct {
// contains filtered or unexported fields
}
func NewDockerfileIgnorePathMatcher ¶
func NewDockerfileIgnorePathMatcher(basePath string, patternMatcher *fileutils.PatternMatcher) *DockerfileIgnorePathMatcher
func (*DockerfileIgnorePathMatcher) BaseFilepath ¶
func (f *DockerfileIgnorePathMatcher) BaseFilepath() string
func (*DockerfileIgnorePathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (f *DockerfileIgnorePathMatcher) IsDirOrSubmodulePathMatched(path string) bool
func (*DockerfileIgnorePathMatcher) IsPathMatched ¶ added in v1.2.8
func (f *DockerfileIgnorePathMatcher) IsPathMatched(path string) bool
func (*DockerfileIgnorePathMatcher) ShouldGoThrough ¶ added in v1.2.8
func (f *DockerfileIgnorePathMatcher) ShouldGoThrough(path string) bool
func (*DockerfileIgnorePathMatcher) String ¶
func (f *DockerfileIgnorePathMatcher) String() string
func (*DockerfileIgnorePathMatcher) TrimFileBaseFilepath ¶
type GitMappingPathMatcher ¶
type GitMappingPathMatcher struct {
// contains filtered or unexported fields
}
func NewGitMappingPathMatcher ¶
func NewGitMappingPathMatcher(basePath string, includePaths, excludePaths []string) *GitMappingPathMatcher
func (*GitMappingPathMatcher) BaseFilepath ¶
func (f *GitMappingPathMatcher) BaseFilepath() string
func (*GitMappingPathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (f *GitMappingPathMatcher) IsDirOrSubmodulePathMatched(path string) bool
func (*GitMappingPathMatcher) IsPathMatched ¶ added in v1.2.8
func (f *GitMappingPathMatcher) IsPathMatched(path string) bool
func (*GitMappingPathMatcher) ShouldGoThrough ¶ added in v1.2.8
func (f *GitMappingPathMatcher) ShouldGoThrough(path string) bool
func (*GitMappingPathMatcher) String ¶
func (f *GitMappingPathMatcher) String() string
func (*GitMappingPathMatcher) TrimFileBaseFilepath ¶
type MultiPathMatcher ¶ added in v1.2.5
type MultiPathMatcher struct {
PathMatchers []PathMatcher
}
func (*MultiPathMatcher) BaseFilepath ¶ added in v1.2.5
func (m *MultiPathMatcher) BaseFilepath() string
func (*MultiPathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (f *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
func (*MultiPathMatcher) String ¶ added in v1.2.5
func (m *MultiPathMatcher) String() string
func (*MultiPathMatcher) TrimFileBaseFilepath ¶ added in v1.2.5
func (m *MultiPathMatcher) TrimFileBaseFilepath(path 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 TrimFileBaseFilepath(string) string BaseFilepath() string String() string }
func NewMultiPathMatcher ¶ added in v1.2.5
func NewMultiPathMatcher(PathMatchers ...PathMatcher) PathMatcher
type SimplePathMatcher ¶
type SimplePathMatcher struct {
// contains filtered or unexported fields
}
func NewSimplePathMatcher ¶
func NewSimplePathMatcher(basePath string, paths []string) *SimplePathMatcher
func (*SimplePathMatcher) BaseFilepath ¶
func (f *SimplePathMatcher) BaseFilepath() string
func (*SimplePathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (f *SimplePathMatcher) IsDirOrSubmodulePathMatched(path string) bool
func (*SimplePathMatcher) IsPathMatched ¶ added in v1.2.8
func (f *SimplePathMatcher) IsPathMatched(path string) bool
func (*SimplePathMatcher) Paths ¶
func (f *SimplePathMatcher) Paths() []string
func (*SimplePathMatcher) ShouldGoThrough ¶ added in v1.2.8
func (f *SimplePathMatcher) ShouldGoThrough(path string) bool
func (*SimplePathMatcher) String ¶
func (f *SimplePathMatcher) String() string
func (*SimplePathMatcher) TrimFileBaseFilepath ¶
type StubPathMatcher ¶ added in v1.2.7
type StubPathMatcher struct {
*SimplePathMatcher
}
StubPathMatcher returns false when matching paths
func NewStubPathMatcher ¶ added in v1.2.7
func NewStubPathMatcher(basePath string) *StubPathMatcher
func (*StubPathMatcher) IsDirOrSubmodulePathMatched ¶ added in v1.2.8
func (f *StubPathMatcher) IsDirOrSubmodulePathMatched(_ string) bool
func (*StubPathMatcher) IsPathMatched ¶ added in v1.2.8
func (m *StubPathMatcher) IsPathMatched(_ string) bool
func (*StubPathMatcher) ShouldGoThrough ¶ added in v1.2.8
func (m *StubPathMatcher) ShouldGoThrough(_ string) bool
func (*StubPathMatcher) String ¶ added in v1.2.7
func (m *StubPathMatcher) String() string
func (StubPathMatcher) TrimFileBaseFilepath ¶ added in v1.2.7
Click to show internal directories.
Click to hide internal directories.