scan

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoScanPaths means no scan paths were found.
	ErrNoScanPaths = errors.New("scan: no scan paths in cfg.toml")

	// ErrPathGlob means glob error.
	ErrPathGlob = errors.New("fsys: path glob error")
)

Functions

func Glob

func Glob(paths []string) ([]string, error)

Glob returns globbed scan paths from given paths.

func Group

func Group(paths []string) map[string]*job.Paths

Group sorts given paths to target:paths.

Types

type Scan

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

Scan represents a scan.

func New

func New(env *env.Env, paths ...string) (*Scan, error)

New returns a scan for given env and paths.

func (*Scan) Run

func (scan *Scan) Run() error

Run runs a scan.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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