Documentation ¶
Index ¶
Constants ¶
View Source
const NOASSERTION = "NOASSERTION"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreationInfo ¶
type Document ¶
type Document struct { ID string `json:"SPDXID"` Name string `json:"name"` Version string `json:"spdxVersion"` CreationInfo CreationInfo `json:"creationInfo"` DataLicense string `json:"dataLicense"` Namespace string `json:"documentNamespace"` DocumentDescribes []string `json:"documentDescribes"` Files []File `json:"files,omitempty"` Packages []Package `json:"packages"` Relationships []Relationship `json:"relationships"` ExternalDocumentRefs []ExternalDocumentRef `json:"externalDocumentRefs,omitempty"` }
type ExternalDocumentRef ¶ added in v0.5.0
type ExternalRef ¶
type File ¶ added in v0.6.0
type File struct { ID string `json:"SPDXID"` Name string `json:"fileName"` CopyrightText string `json:"copyrightText"` NoticeText string `json:"noticeText,omitempty"` LicenseConcluded string `json:"licenseConcluded"` Description string `json:"description,omitempty"` FileTypes []string `json:"fileTypes,omitempty"` LicenseInfoInFile []string `json:"licenseInfoInFiles"` // List of licenses Checksums []Checksum `json:"checksums"` }
type Package ¶
type Package struct { ID string `json:"SPDXID"` Name string `json:"name"` Version string `json:"versionInfo,omitempty"` FilesAnalyzed bool `json:"filesAnalyzed"` HasFiles []string `json:"hasFiles,omitempty"` LicenseInfoFromFiles []string `json:"licenseInfoFromFiles,omitempty"` LicenseConcluded string `json:"licenseConcluded"` LicenseDeclared string `json:"licenseDeclared"` Description string `json:"description,omitempty"` DownloadLocation string `json:"downloadLocation,omitempty"` Originator string `json:"originator,omitempty"` SourceInfo string `json:"sourceInfo,omitempty"` CopyrightText string `json:"copyrightText"` PrimaryPurpose string `json:"primaryPackagePurpose,omitempty"` Checksums []Checksum `json:"checksums"` ExternalRefs []ExternalRef `json:"externalRefs,omitempty"` VerificationCode PackageVerificationCode `json:"packageVerificationCode,omitempty"` }
type PackageVerificationCode ¶ added in v0.6.0
type Relationship ¶
Click to show internal directories.
Click to hide internal directories.