Documentation ¶
Index ¶
- func NewPackageManifestScanner(config Config, readers []readers.PackageManifestReader, ...) *packageManifestScanner
- type Config
- type PackageDependencyCallbackFn
- type PackageMetaEnricher
- type ScannerCallbackErrArgFn
- type ScannerCallbackNoArgFn
- type ScannerCallbackOnManifestFn
- type ScannerCallbackOnManifestsFn
- type ScannerCallbackOnPackageFn
- type ScannerCallbacks
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 PackageDependencyCallbackFn ¶
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 ScannerCallbacks ¶
type ScannerCallbacks struct { OnStart ScannerCallbackOnManifestsFn OnStartManifest ScannerCallbackOnManifestFn OnStartPackage ScannerCallbackOnPackageFn OnAddTransitivePackage ScannerCallbackOnPackageFn OnDonePackage ScannerCallbackOnPackageFn OnDoneManifest ScannerCallbackOnManifestFn BeforeFinish ScannerCallbackNoArgFn OnStop ScannerCallbackErrArgFn }
Click to show internal directories.
Click to hide internal directories.