Documentation ¶
Index ¶
- Variables
- func DepLinkType(a artifact.Artifact, d artifact.Dependency) string
- func DepType(d artifact.Dependency) string
- func New(filename string) artifact.Artifact
- func Output(a artifact.Artifact) error
- func OutputCycloneDX(a artifact.Artifact, filename string, format cdx.BOMFileFormat) error
- func OutputSpdxText(a artifact.Artifact, filename string) error
- func Purl(a artifact.Artifact, d artifact.Dependency) string
Constants ¶
This section is empty.
Variables ¶
View Source
var BomSchemes = map[string]struct{}{"dir": {}, "git": {}, "docker": {}, "": {}}
extractor schemes that can be used to point to BoM source
Functions ¶
func DepLinkType ¶
func DepLinkType(a artifact.Artifact, d artifact.Dependency) string
DepLinkType returns the link type static linkage only in following cases: - artifact is a container - artifact is a Go binary and dependency is Go
func DepType ¶
func DepType(d artifact.Dependency) string
func OutputCycloneDX ¶
func OutputSpdxText ¶
Output info about package and its components in SPDX text (tag:value) format, according to SPDX spec 2.2: https://spdx.dev/wp-content/uploads/sites/41/2020/08/SPDX-specification-2-2.pdf
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.