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
1530ef35
ROOT
/
syft
/
formats
/
common
/
spdxhelpers
/
to_syft_model.go
Search
History
405 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
ToSyftModel
(doc *spdx.Document)
:
(*sbom.SBOM, error)
extractSchemeFromNamespace
(ns string)
:
source.Scheme
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 source.FileMetadata)
toSyftRelationships
(spdxIDMap map[string]interface{}, doc *spdx.Document)
:
[]artifact.Relationship
toSyftCoordinates
(f *spdx.File)
:
source.Coordinates
toSyftLocation
(f *spdx.File)
:
*source.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
extractMetadata
(p *spdx.Package, info pkgInfo)
:
(pkg.MetadataType, interface{})
findPURLValue
(p *spdx.Package)
:
string
extractCPEs
(p *spdx.Package)
:
(cpes []cpe.CPE)
parseLicense
(l string)
:
[]string
*pkgInfo
qualifierValue
(name string)
:
string
All occurrences
Please wait...
Page is in error, reload to recover