scanner

package
v0.0.0-...-7f60aa0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectoryScanner

type DirectoryScanner interface {
	// Scan checks file has to be ignored or not, returns true if it needs to be ignored
	Scan() ([]string, error)
}

DirectoryScanner helps identifying if a BundleFile needs to be ignored

func NewOrDefault

func NewOrDefault(dir, ignore string) (DirectoryScanner, error)

NewOrDefault builds and returns the new or default DirectoryScanner interface In all file not found cases the this wil return the default ignorer

type FileIgnorePattern

type FileIgnorePattern struct {
	Pattern      string
	Paths        []string
	RegexPattern *regexp.Regexp
	Invert       bool
}

IgnorePattern holds the ignorable patterns

Jump to

Keyboard shortcuts

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