spdx

package
v0.31.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	SPDXVersion         = "SPDX-2.2"
	DataLicense         = "CC0-1.0"
	SPDXIdentifier      = "DOCUMENT"
	DocumentNamespace   = "http://aquasecurity.github.io/trivy"
	CreatorOrganization = "aquasecurity"
	CreatorTool         = "trivy"
)

Variables

This section is empty.

Functions

func WithClock

func WithClock(clock clock.Clock) option

func WithHasher added in v0.30.0

func WithHasher(hasher Hash) option

func WithNewUUID

func WithNewUUID(newUUID newUUID) option

Types

type Hash added in v0.30.0

type Hash func(v interface{}, format hashstructure.Format, opts *hashstructure.HashOptions) (uint64, error)

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(output io.Writer, version string, spdxFormat string, opts ...option) Writer

func (Writer) Write

func (cw Writer) Write(report types.Report) error

Jump to

Keyboard shortcuts

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