path_matcher

package
v1.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

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, greedySearch bool) *DockerfileIgnorePathMatcher

func (*DockerfileIgnorePathMatcher) BaseFilepath

func (f *DockerfileIgnorePathMatcher) BaseFilepath() string

func (*DockerfileIgnorePathMatcher) MatchPath

func (f *DockerfileIgnorePathMatcher) MatchPath(path string) bool

func (*DockerfileIgnorePathMatcher) ProcessDirOrSubmodulePath

func (f *DockerfileIgnorePathMatcher) ProcessDirOrSubmodulePath(path string) (bool, bool)

func (*DockerfileIgnorePathMatcher) String

func (f *DockerfileIgnorePathMatcher) String() string

func (*DockerfileIgnorePathMatcher) TrimFileBaseFilepath

func (f *DockerfileIgnorePathMatcher) TrimFileBaseFilepath(path string) string

type GitMappingPathMatcher

type GitMappingPathMatcher struct {
	// contains filtered or unexported fields
}

func NewGitMappingPathMatcher

func NewGitMappingPathMatcher(basePath string, includePaths, excludePaths []string, greedySearch bool) *GitMappingPathMatcher

func (*GitMappingPathMatcher) BaseFilepath

func (f *GitMappingPathMatcher) BaseFilepath() string

func (*GitMappingPathMatcher) MatchPath

func (f *GitMappingPathMatcher) MatchPath(path string) bool

func (*GitMappingPathMatcher) ProcessDirOrSubmodulePath

func (f *GitMappingPathMatcher) ProcessDirOrSubmodulePath(path string) (bool, bool)

func (*GitMappingPathMatcher) String

func (f *GitMappingPathMatcher) String() string

func (*GitMappingPathMatcher) TrimFileBaseFilepath

func (f *GitMappingPathMatcher) TrimFileBaseFilepath(path string) string

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) MatchPath added in v1.2.5

func (m *MultiPathMatcher) MatchPath(path string) bool

func (*MultiPathMatcher) ProcessDirOrSubmodulePath added in v1.2.5

func (m *MultiPathMatcher) ProcessDirOrSubmodulePath(path string) (bool, 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 {
	MatchPath(string) bool
	ProcessDirOrSubmodulePath(string) (bool, 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, greedySearch bool) *SimplePathMatcher

func (*SimplePathMatcher) BaseFilepath

func (f *SimplePathMatcher) BaseFilepath() string

func (*SimplePathMatcher) MatchPath

func (f *SimplePathMatcher) MatchPath(path string) bool

func (*SimplePathMatcher) Paths

func (f *SimplePathMatcher) Paths() []string

func (*SimplePathMatcher) ProcessDirOrSubmodulePath

func (f *SimplePathMatcher) ProcessDirOrSubmodulePath(path string) (bool, bool)

func (*SimplePathMatcher) String

func (f *SimplePathMatcher) String() string

func (*SimplePathMatcher) TrimFileBaseFilepath

func (f *SimplePathMatcher) TrimFileBaseFilepath(path string) string

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) MatchPath added in v1.2.7

func (m *StubPathMatcher) MatchPath(_ string) bool

func (*StubPathMatcher) ProcessDirOrSubmodulePath added in v1.2.7

func (m *StubPathMatcher) ProcessDirOrSubmodulePath(_ string) (bool, bool)

func (*StubPathMatcher) String added in v1.2.7

func (m *StubPathMatcher) String() string

func (StubPathMatcher) TrimFileBaseFilepath added in v1.2.7

func (f StubPathMatcher) TrimFileBaseFilepath(path string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL