spdxhelpers

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Description

func Description(p pkg.Package) string

func DocumentName added in v0.31.0

func DocumentName(srcMetadata source.Metadata) (string, error)

func DocumentNameAndNamespace added in v0.31.0

func DocumentNameAndNamespace(srcMetadata source.Metadata) (string, string, error)

func DocumentNamespace added in v0.31.0

func DocumentNamespace(name string, srcMetadata source.Metadata) string

func DownloadLocation

func DownloadLocation(p pkg.Package) string

func ExternalRefs

func ExternalRefs(p pkg.Package) (externalRefs []model.ExternalRef)

func ExtractCPEs

func ExtractCPEs(refs []model.ExternalRef) (cpes []pkg.CPE)

func ExtractPURL

func ExtractPURL(refs []model.ExternalRef) string

func Homepage

func Homepage(p pkg.Package) string

func License

func License(p pkg.Package) string

func NoneIfEmpty

func NoneIfEmpty(value string) string

func Originator

func Originator(p pkg.Package) string

func SourceInfo

func SourceInfo(p pkg.Package) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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