Documentation ¶
Index ¶
- func NewPackageManifestScanner(config Config, readers []readers.PackageManifestReader, ...) *packageManifestScanner
- type Config
- type InsightsBasedPackageMetaEnricherConfig
- type PackageDependencyCallbackFn
- type PackageMetaEnricher
- type ScannerCallbackErrArgFn
- type ScannerCallbackNoArgFn
- type ScannerCallbackOnManifestFn
- 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 InsightsBasedPackageMetaEnricherConfig ¶ added in v1.4.0
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(config InsightsBasedPackageMetaEnricherConfig) (PackageMetaEnricher, error)
func NewInsightBasedPackageEnricherV2 ¶ added in v1.8.3
func NewInsightBasedPackageEnricherV2(cc *grpc.ClientConn) (PackageMetaEnricher, error)
NewInsightBasedPackageEnricherV2 creates a new instance of the enricher using Insights API v2. It requires a pre-configured gRPC client connection.
type ScannerCallbackErrArgFn ¶
type ScannerCallbackErrArgFn func(error)
type ScannerCallbackNoArgFn ¶
type ScannerCallbackNoArgFn func()
type ScannerCallbackOnManifestFn ¶
type ScannerCallbackOnManifestFn func(manifest *models.PackageManifest)
type ScannerCallbacks ¶
type ScannerCallbacks struct { OnStartEnumerateManifest ScannerCallbackNoArgFn // Manifest enumeration is starting OnEnumerateManifest ScannerCallbackOnManifestFn // A manifest is read by reader OnStart ScannerCallbackNoArgFn // Manifest scan phase is starting OnStartManifest ScannerCallbackOnManifestFn // A manifest is starting to be scanned OnStartPackage ScannerCallbackOnPackageFn // A package analysis is starting OnAddTransitivePackage ScannerCallbackOnPackageFn // A transitive dependency is discovered OnDonePackage ScannerCallbackOnPackageFn // A package analysis is finished OnDoneManifest ScannerCallbackOnManifestFn // A manifest analysis is finished BeforeFinish ScannerCallbackNoArgFn // Scan is about to finish OnStop ScannerCallbackErrArgFn // Scan is finished }
Click to show internal directories.
Click to hide internal directories.