Documentation
¶
Index ¶
- Constants
- func GenerateImageCycloneDX(mod []byte) ([]byte, error)
- func GenerateImageSPDX(koVersion string, mod []byte, img oci.SignedImage) ([]byte, error)
- func GenerateIndexCycloneDX(oci.SignedImageIndex) ([]byte, error)
- func GenerateIndexSPDX(koVersion string, sii oci.SignedImageIndex) ([]byte, error)
- type Checksum
- type CreationInfo
- type Document
- type ExternalDocumentRef
- type ExternalRef
- type File
- type Package
- type PackageVerificationCode
- type Relationship
Constants ¶
View Source
const ( NOASSERTION = "NOASSERTION" Version = "SPDX-2.3" )
Variables ¶
This section is empty.
Functions ¶
func GenerateImageCycloneDX ¶ added in v0.12.0
func GenerateImageSPDX ¶ added in v0.12.0
func GenerateIndexCycloneDX ¶ added in v0.12.0
func GenerateIndexCycloneDX(oci.SignedImageIndex) ([]byte, error)
func GenerateIndexSPDX ¶ added in v0.12.0
func GenerateIndexSPDX(koVersion string, sii oci.SignedImageIndex) ([]byte, error)
Types ¶
type CreationInfo ¶ added in v0.12.0
type Document ¶ added in v0.12.0
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,omitempty"` Files []File `json:"files,omitempty"` Packages []Package `json:"packages,omitempty"` Relationships []Relationship `json:"relationships,omitempty"` ExternalDocumentRefs []ExternalDocumentRef `json:"externalDocumentRefs,omitempty"` }
type ExternalDocumentRef ¶ added in v0.12.0
type ExternalRef ¶ added in v0.12.0
type File ¶ added in v0.12.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 ¶ added in v0.12.0
type Package struct { ID string `json:"SPDXID"` Name string `json:"name"` Version string `json:"versionInfo,omitempty"` FilesAnalyzed bool `json:"filesAnalyzed"` LicenseDeclared string `json:"licenseDeclared"` LicenseConcluded string `json:"licenseConcluded"` Description string `json:"description,omitempty"` DownloadLocation string `json:"downloadLocation"` Originator string `json:"originator,omitempty"` SourceInfo string `json:"sourceInfo,omitempty"` CopyrightText string `json:"copyrightText"` PrimaryPurpose string `json:"primaryPackagePurpose,omitempty"` HasFiles []string `json:"hasFiles,omitempty"` LicenseInfoFromFiles []string `json:"licenseInfoFromFiles,omitempty"` Checksums []Checksum `json:"checksums,omitempty"` ExternalRefs []ExternalRef `json:"externalRefs,omitempty"` VerificationCode *PackageVerificationCode `json:"packageVerificationCode,omitempty"` }
type PackageVerificationCode ¶ added in v0.12.0
type Relationship ¶ added in v0.12.0
Click to show internal directories.
Click to hide internal directories.