utils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverCDXComponents added in v0.3.0

func DiscoverCDXComponents(bom *cdx.BOM) []*cdx.Component

func GetLicenseExpressionFromEcosystemsLicense added in v0.8.0

func GetLicenseExpressionFromEcosystemsLicense(pkgVersionData *packages.VersionWithDependencies, pkgData *packages.Package) string

func GetLicensesFromEcosystemsLicense added in v0.8.0

func GetLicensesFromEcosystemsLicense(pkgVersionData *packages.VersionWithDependencies, pkgData *packages.Package) []string

func GetPurlFromSPDXPackage added in v0.2.0

func GetPurlFromSPDXPackage(pkg *spdx_2_3.Package) (*packageurl.PackageURL, error)

func GetUserInput

func GetUserInput(filename string, file io.Reader) (b []byte, err error)

GetUserInput will open and read from the given filename. If filename is "-", it will read from the given file instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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