Documentation ¶
Index ¶
- Constants
- Variables
- func CheckLicense(id string) string
- func DownloadLocation(c types.Component) string
- func ExternalRefs(c types.Component) (refs []*spdx23.PackageExternalReference)
- func FormatAuthor(authorString string) string
- func FormatNamespace(input string) string
- func FormatPath(path string) string
- func Homepage(c types.Component) string
- func LicensesDeclared(c types.Component) string
- func Originator(p types.Component) (string, string)
- func SourceInfo(c types.Component) string
- func ToSPDX23Package(c types.Component) *spdx23.Package
- func ToSPDX23Packages(components []types.Component) (packages []*spdx23.Package)
Constants ¶
View Source
const ( // Version : current implemented version (2.3) Version = "SPDX-2.3" // DataLicense : 6.2 Data license field Table 3 https://spdx.github.io/spdx-spec/v2.3/document-creation-information/ DataLicense = "CC0-1.0" // Ref : SPDX Ref Prefix Ref = "SPDXRef-" // Doc : Document Prefix Doc = "DOCUMENT" // NoAssertion : NO ASSERTION (For licenses) NoAssertion = "NOASSERTION" // None : NONE None = "NONE" )
Variables ¶
View Source
var ( Creators = []spdxcommon.Creator{ { Creator: "carbonetes", CreatorType: "Organization", }, { Creator: "diggity-" + version.FromBuild().Version, CreatorType: "Tool", }, } )
Functions ¶
func CheckLicense ¶
func DownloadLocation ¶
Get the component's download location from the metadata if it exists
func ExternalRefs ¶
func ExternalRefs(c types.Component) (refs []*spdx23.PackageExternalReference)
Add references based on component purl and cpes
func FormatAuthor ¶
func FormatNamespace ¶
func FormatPath ¶
func LicensesDeclared ¶
Check if license is in SPDX License List
func Originator ¶
Get the component's author or maintainer from the metadata if it exists
func SourceInfo ¶
Determine where the component was parsed from and return the source information string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.