converter

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 10 Imported by: 2

Documentation

Overview

Package converter provides utility functions for converting SCALIBR's scan results to standardized inventory formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCDX added in v0.1.2

ToCDX converts the SCALIBR scan results into a CycloneDX document.

func ToPURL

func ToPURL(p *extractor.Package) *purl.PackageURL

ToPURL converts a SCALIBR package structure into a package URL.

func ToSPDX23

func ToSPDX23(i inventory.Inventory, c spdx.Config) *v2_3.Document

ToSPDX23 converts the SCALIBR scan results into an SPDX v2.3 document.

Types

type CDXConfig added in v0.1.2

type CDXConfig struct {
	ComponentName    string
	ComponentVersion string
	ComponentType    string
	Authors          []string
}

CDXConfig describes custom settings that should be applied to the generated CDX file.

Directories

Path Synopsis
Package spdx provides utilities for creating SPDX SBOMs.
Package spdx provides utilities for creating SPDX SBOMs.

Jump to

Keyboard shortcuts

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