scanner

package
v1.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPackageManifestScanner

func NewPackageManifestScanner(config Config,
	readers []readers.PackageManifestReader,
	enrichers []PackageMetaEnricher,
	analyzers []analyzer.Analyzer,
	reporters []reporter.Reporter) *packageManifestScanner

Types

type Config

type Config struct {
	ExcludePatterns    []string
	ConcurrentAnalyzer int
	TransitiveAnalysis bool
	TransitiveDepth    int
}

type PackageDependencyCallbackFn

type PackageDependencyCallbackFn func(pkg *models.Package) error

Callback to receive a discovery package dependency

type PackageMetaEnricher

type PackageMetaEnricher interface {
	Name() string
	Enrich(pkg *models.Package, cb PackageDependencyCallbackFn) error
}

Enrich meta information associated with the package

func NewInsightBasedPackageEnricher

func NewInsightBasedPackageEnricher() PackageMetaEnricher

type ScannerCallbackErrArgFn

type ScannerCallbackErrArgFn func(error)

type ScannerCallbackNoArgFn

type ScannerCallbackNoArgFn func()

type ScannerCallbackOnManifestFn

type ScannerCallbackOnManifestFn func(manifest *models.PackageManifest)

type ScannerCallbackOnManifestsFn

type ScannerCallbackOnManifestsFn func(manifest []*models.PackageManifest)

type ScannerCallbackOnPackageFn

type ScannerCallbackOnPackageFn func(pkg *models.Package)

type ScannerCallbacks

type ScannerCallbacks struct {
	OnStart                ScannerCallbackOnManifestsFn
	OnStartManifest        ScannerCallbackOnManifestFn
	OnStartPackage         ScannerCallbackOnPackageFn
	OnAddTransitivePackage ScannerCallbackOnPackageFn
	OnDonePackage          ScannerCallbackOnPackageFn
	OnDoneManifest         ScannerCallbackOnManifestFn
	BeforeFinish           ScannerCallbackNoArgFn
	OnStop                 ScannerCallbackErrArgFn
}

Jump to

Keyboard shortcuts

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