Documentation ¶
Index ¶
- Constants
- Variables
- func CheckLicense(id string) string
- func DownloadLocation(p *model.Package) string
- func ExternalRefs(p *model.Package) (refs []*spdx22.PackageExternalReference)
- func FormatAuthor(authorString string) string
- func FormatName(image *string) string
- func FormatNamespace(imageName string) string
- func FormatPath(path string) string
- func FormatTagID(p *model.Package) string
- func Homepage(p *model.Package) string
- func LicensesDeclared(p *model.Package) string
- func Originator(p *model.Package) (string, string)
- func SourceInfo(p *model.Package) string
Constants ¶
View Source
const ( // Version : current implemented version (2.2) Version = "SPDX-2.2" // DataLicense : 6.2 Data license field Table 3 https://spdx.github.io/spdx-spec/v2.2.2/document-creation-information/ DataLicense = "CC0-1.0" // Creator : Carbonetes Creator = "Carbonetes" // Ref : SPDX Ref Prefix Ref = "SPDXRef-" // Doc : Document Prefix Doc = "DOCUMENT" // NoAssertion : NO ASSERTION (For licenses) NoAssertion = "NOASSERTION" // None : NONE None = "NONE" )
View Source
const LicenseListVersion = "3.20"
LicenseListVersion is the current implemented version for SPDX.
View Source
const (
// LicenseURL is the reference for the SPDX License List
LicenseURL = "https://spdx.org/licenses/licenses.json"
)
Variables ¶
View Source
var ( Tool = "Tool: " + versionPackage.FromBuild().Version CreateInfo = []spdxcommon.Creator{ { Creator: Creator, CreatorType: organization, }, { Creator: versionPackage.FromBuild().Version, CreatorType: tool, }, } )
CreateInfo : Contains creator and tool information.
View Source
var LicenseList = map[string]string{}/* 1105 elements not displayed */
LicenseList contains the referece licenses from the source URL.
Functions ¶
func ExternalRefs ¶
func ExternalRefs(p *model.Package) (refs []*spdx22.PackageExternalReference)
ExternalRefs helper
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.