componentwithconfidenceslice

package
v0.0.0-...-2d4f0a5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentWithConfidenceSlice

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

Slice of componentWithConfidence with a map mapping BOMReference to index in the components slice; bomRefMap can be used to access members of components by BOMReference without searching for the BOMReference in the structs itself

func FromComponentSlice

func FromComponentSlice(slice []cdx.Component) *ComponentWithConfidenceSlice

Generate a AdvancedComponentSlice from a slice of components

func (*ComponentWithConfidenceSlice) GetByIndex

func (advancedComponentSlice *ComponentWithConfidenceSlice) GetByIndex(i int) *componentWithConfidence

Get member of AdvancedComponentSlice by index

func (*ComponentWithConfidenceSlice) GetByRef

func (advancedComponentSlice *ComponentWithConfidenceSlice) GetByRef(ref cdx.BOMReference) (*componentWithConfidence, bool)

Get member of AdvancedComponentSlice by BOMReference

func (*ComponentWithConfidenceSlice) GetComponentSlice

func (advancedComponentSlice *ComponentWithConfidenceSlice) GetComponentSlice() []cdx.Component

Generate CycloneDX Components from this AdvancedComponentSlice; automatically sets the confidence_level property

Jump to

Keyboard shortcuts

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