mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
* add initial spdx support Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * expose FileOwner and use in SPDX presenter Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add initial json support for SPDX Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add remaining package fields Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add spdx license list generation + tests Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * keep fileOwner unexported from pkg Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * restore cli test util Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add external refs to spdx tag-value format Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add golang support to CPE generation Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * use tag-value format as default "spdx" format flavor Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add tests around spdx presenters + refactor presenter tests Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add bouncer exception for spdx tools-golang repo Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * remove spdx model questions Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
15 lines
635 B
Go
15 lines
635 B
Go
package spdx22
|
|
|
|
type HasExtractedLicensingInfo struct {
|
|
// Verbatim license or licensing notice text that was discovered.
|
|
ExtractedText string `json:"extractedText"`
|
|
// A human readable short form license identifier for a license. The license ID is iether on the standard license
|
|
// oist or the form \"LicenseRef-\"[idString] where [idString] is a unique string containing letters,
|
|
// numbers, \".\", \"-\" or \"+\".
|
|
LicenseID string `json:"licenseId"`
|
|
Comment string `json:"comment,omitempty"`
|
|
// Identify name of this SpdxElement.
|
|
Name string `json:"name,omitempty"`
|
|
SeeAlsos []string `json:"seeAlsos,omitempty"`
|
|
}
|