bom

package
v1.41.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSbomForTarget

func GenerateSbomForTarget(generator SbomGenerator, params SbomGeneratorParams)

Types

type SbomGenerator

type SbomGenerator interface {
	WithOptions(options ...SbomGeneratorOption) SbomGenerator
	// PrepareGenerator prepares the generator for SBOM generation, should be called once before generating SBOMs.
	PrepareGenerator() error
	// GenerateSbom generates a CycloneDX SBOM for the given target.
	GenerateSbom(target results.ScanTarget) (*cyclonedx.BOM, error)
	// CleanUp cleans up any resources used by the generator, should be called after all SBOMs are generated.
	CleanUp() error
}

SbomGenerator is an interface for generating SBOMs from different sources.

type SbomGeneratorOption

type SbomGeneratorOption func(sg SbomGenerator)

type SbomGeneratorParams

type SbomGeneratorParams struct {
	Target               *results.TargetResults
	TotalTargets         int
	AllowPartialResults  bool
	ScanResultsOutputDir string

	DiffMode              bool
	TargetResultToCompare *results.TargetResults
}

Jump to

Keyboard shortcuts

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