analyzer

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	SourceType utils.SourceType
	SourcePath string
	SourceHash string
}

type MergedComponent

type MergedComponent struct {
	Component    cdx.Component
	AnalyzerInfo []string
}

type MergedResults

type MergedResults struct {
	MergedComponentByKey map[componentKey]*MergedComponent
	Source               utils.SourceType
	SourceHash           string
	SrcMetaData          *cdx.Metadata
}

func NewMergedResults

func NewMergedResults(sourceType utils.SourceType, hash string) *MergedResults

func (*MergedResults) CreateMergedSBOMBytes

func (m *MergedResults) CreateMergedSBOMBytes(format, version string) ([]byte, error)

func (*MergedResults) Merge

func (m *MergedResults) Merge(other *Results, format string) *MergedResults

type Results

type Results struct {
	Sbom         []byte
	AnalyzerInfo string
	AppInfo      AppInfo
	Error        error
}

func CreateResults

func CreateResults(sbomBytes []byte, analyzerName, userInput string, srcType utils.SourceType) *Results

func (*Results) GetError

func (r *Results) GetError() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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