Documentation ¶
Index ¶
- func Description(p pkg.Package) string
- func DocumentName(srcMetadata source.Metadata) (string, error)
- func DocumentNameAndNamespace(srcMetadata source.Metadata) (string, string, error)
- func DocumentNamespace(name string, srcMetadata source.Metadata) string
- func DownloadLocation(p pkg.Package) string
- func ExternalRefs(p pkg.Package) (externalRefs []model.ExternalRef)
- func ExtractCPEs(refs []model.ExternalRef) (cpes []pkg.CPE)
- func ExtractPURL(refs []model.ExternalRef) string
- func Homepage(p pkg.Package) string
- func License(p pkg.Package) string
- func NoneIfEmpty(value string) string
- func Originator(p pkg.Package) string
- func SourceInfo(p pkg.Package) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶
func DocumentNameAndNamespace ¶ added in v0.31.0
func DocumentNamespace ¶ added in v0.31.0
func DownloadLocation ¶
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 NoneIfEmpty ¶
func Originator ¶
Originator needs to conform to the SPDX spec here: https://spdx.github.io/spdx-spec/package-information/#76-package-originator-field Available options are: <omit>, NOASSERTION, Person: <person>, Organization: <org>
func SourceInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.