Documentation
¶
Index ¶
- func GetDirConfigFile(ctx context.Context) (name string)
- func WithDirConfigFile(name string, ctx context.Context) context.Context
- type ContextKey
- type DirInput
- func (this DirInput) Exclude(pth string, info os.FileInfo) bool
- func (this DirInput) Find(cb func(file File) error) (err error)
- func (this DirInput) Finder() (finder Finder)
- func (this DirInput) GetPrefix() string
- func (this DirInput) GetTrimPrefix() string
- func (this DirInput) Include(pth string, info os.FileInfo) bool
- func (this DirInput) IsRecursive() bool
- func (this DirInput) PathOf(realPath string) (pth string)
- func (this DirInput) Setup(ctx context.Context) (err error)
- func (this *DirInput) SetupTree(ctx context.Context, prefix string) (err error)
- type File
- type FileMatcher
- type FileMatcherFunc
- type FileMatchers
- type Finder
- type Finders
- type Input
- type InputFinder
- type InputFinders
- type RealFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDirConfigFile ¶
Types ¶
type DirInput ¶
type DirInput struct {
Dir string
TrimPrefix string `mapstructure:"strip_prefix" yaml:"strip_prefix"`
Prefix string
Recursive bool
Includes FileMatchers
Excludes FileMatchers
Sources []DirInput
}
func (DirInput) GetTrimPrefix ¶
func (DirInput) IsRecursive ¶
type FileMatcher ¶
func FileMatchGlob ¶
func FileMatchGlob(pattern string) (acceptor FileMatcher, err error)
func FileMatchRegex ¶
func FileMatchRegex(pattern string) (acceptor FileMatcher, err error)
func ParseFileMatcher ¶
func ParseFileMatcher(s string) (fm FileMatcher, err error)
type FileMatcherFunc ¶
type FileMatchers ¶
type FileMatchers []FileMatcher
func ParseFileMatchers ¶
func ParseFileMatchers(items ...string) (include, exclude FileMatchers, err error)
func (*FileMatchers) Parse ¶
func (this *FileMatchers) Parse(items ...string) (err error)
type InputFinder ¶
type InputFinders ¶
type InputFinders []InputFinder
func (InputFinders) Finder ¶
func (this InputFinders) Finder() Finder
Click to show internal directories.
Click to hide internal directories.