Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildIndexInput ¶
type FileIndex ¶
type FileIndex struct {
// contains filtered or unexported fields
}
FileIndex holds matched file paths grouped by pattern name.
func BuildIndex ¶
func BuildIndex(ctx context.Context, input BuildIndexInput) (*FileIndex, error)
func NewFileIndex ¶
func NewFileIndex() *FileIndex
func (*FileIndex) TotalFiles ¶
type Pattern ¶
type Pattern struct {
Name string
Patterns []string
Type PatternType
}
type PatternType ¶
type PatternType string
const ( PatternTypeGlob PatternType = "glob" PatternTypeExact PatternType = "exact" PatternTypeRegex PatternType = "regex" )
Click to show internal directories.
Click to hide internal directories.