bom

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 New

func New(filename string) artifact.Artifact

New returns Artifact implementation of type, matching the artifact language/environment

func Output

func Output(a artifact.Artifact) error

func OutputCycloneDX

func OutputCycloneDX(a artifact.Artifact, filename string, format cdx.BOMFileFormat) error

func OutputSpdxText

func OutputSpdxText(a artifact.Artifact, filename string) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL