indexer

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTargetEmptySbom

func CreateTargetEmptySbom(target results.ScanTarget) *cyclonedx.BOM

func DownloadIndexerIfNeeded

func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager, xrayVersionStr string) (indexerPath string, err error)

func WithBypassArchiveLimits

func WithBypassArchiveLimits(bypass bool) bom.SbomGeneratorOption

func WithXray

func WithXray(manager *xray.XrayServicesManager, xrayVersion string) bom.SbomGeneratorOption

Types

type IndexerBomGenerator

type IndexerBomGenerator struct {
	// contains filtered or unexported fields
}

IndexerBomGenerator is a BomGenerator that uses the Xray Indexer to generate a CycloneDX SBOM. It indexes a file and converts the resulting component graph to a CycloneDX SBOM.

func NewIndexerBomGenerator

func NewIndexerBomGenerator() *IndexerBomGenerator

func (*IndexerBomGenerator) CleanUp

func (ibg *IndexerBomGenerator) CleanUp() error

func (*IndexerBomGenerator) GenerateSbom

func (ibg *IndexerBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)

func (*IndexerBomGenerator) IndexFile

func (ibg *IndexerBomGenerator) IndexFile(filePath string) (*xrayClientUtils.BinaryGraphNode, error)

func (*IndexerBomGenerator) PrepareGenerator

func (ibg *IndexerBomGenerator) PrepareGenerator() (err error)

func (*IndexerBomGenerator) WithOptions

func (ibg *IndexerBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator

Jump to

Keyboard shortcuts

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