crash.software
Projects
Pull Requests
Issues
Builds
syft
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
syft
Files
🤬
Sign In
1002a322
ROOT
/
syft
/
formats
/
common
/
spdxhelpers
/
to_syft_model.go
Search
History
432 lines
|
ISO-8859-1
|
11 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ToSyftModel
(doc *spdx.Document)
:
(*sbom.SBOM, error)
extractSourceFromNamespace
(ns string)
:
source.Description
findLinuxReleaseByPURL
(doc *spdx.Document)
:
*linux.Release
collectSyftPackages
(s *sbom.SBOM, spdxIDMap map[string]interface{}, doc *spdx.Document)
collectSyftFiles
(s *sbom.SBOM, spdxIDMap map[string]interface{}, doc *spdx.Document)
toFileDigests
(f *spdx.File)
:
(digests []file.Digest)
toFileMetadata
(f *spdx.File)
:
(meta file.Metadata)
toSyftRelationships
(spdxIDMap map[string]interface{}, doc *spdx.Document)
:
[]artifact.Relationship
toSyftCoordinates
(f *spdx.File)
:
file.Coordinates
toSyftLocation
(f *spdx.File)
:
*file.Location
requireAndTrimPrefix
(val interface{}, prefix string)
:
string
pkgInfo
purl
:
packageurl.PackageURL
typ
:
pkg.Type
lang
:
pkg.Language
findQualifierValue
(purl packageurl.PackageURL, qualifier string)
:
string
extractPkgInfo
(p *spdx.Package)
:
pkgInfo
toSyftPackage
(p *spdx.Package)
:
*pkg.Package
parseSPDXLicenses
(p *spdx.Package)
:
[]pkg.License
cleanSPDXID
(id string)
:
string
extractMetadata
(p *spdx.Package, info pkgInfo)
:
(pkg.MetadataType, interface{})
findPURLValue
(p *spdx.Package)
:
string
extractCPEs
(p *spdx.Package)
:
(cpes []cpe.CPE)
*pkgInfo
qualifierValue
(name string)
:
string
All occurrences
Please wait...
Page is in error, reload to recover