Documentation ¶
Index ¶
- type ComponentWithConfidenceSlice
- func (advancedComponentSlice *ComponentWithConfidenceSlice) GetByIndex(i int) *componentWithConfidence
- func (advancedComponentSlice *ComponentWithConfidenceSlice) GetByRef(ref cdx.BOMReference) (*componentWithConfidence, bool)
- func (advancedComponentSlice *ComponentWithConfidenceSlice) GetComponentSlice() []cdx.Component
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
Click to show internal directories.
Click to hide internal directories.