scanner

package
v0.0.0-...-2d4f0a5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPluginConstructors

func GetAllPluginConstructors() map[string]plugin_package.PluginConstructor

func GetAllPluginNames

func GetAllPluginNames() []string

func GetPluginConstructorsFromNames

func GetPluginConstructorsFromNames(names []string) ([]plugin_package.PluginConstructor, error)

func NewBOMWithMetadata

func NewBOMWithMetadata() *cdx.BOM

func ReadFilesAndRunScan

func ReadFilesAndRunScan(params ScannerParameterStruct) error

High-level function to do most heavy lifting for scanning a filesystem with a BOM. Output is written to target.

func RunScan

func RunScan(bom *cdx.BOM, plugins []plugin_package.Plugin, fs filesystem.Filesystem, target io.Writer) error

Types

type ScannerParameterStruct

type ScannerParameterStruct struct {
	dig.In

	Fs            filesystem.Filesystem
	Target        io.Writer
	BomFilePath   string                  `name:"bomFilePath"`
	BomSchemaPath string                  `name:"bomSchemaPath"`
	Plugins       []plugin_package.Plugin `group:"plugins"`
}

Jump to

Keyboard shortcuts

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