Documentation
¶
Overview ¶
Package inventoryindex is a wrapper around the collected inventory, which provides methods for fast lookup of identified software.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InventoryIndex ¶
type InventoryIndex struct {
// contains filtered or unexported fields
}
InventoryIndex allows you to query the inventory result.
func New ¶
func New(inv []*extractor.Inventory) (*InventoryIndex, error)
New creates an InventoryIndex based on the specified extraction results.
func (*InventoryIndex) GetAll ¶
func (ix *InventoryIndex) GetAll() []*extractor.Inventory
GetAll lists all detected software inventory.
func (*InventoryIndex) GetAllOfType ¶
func (ix *InventoryIndex) GetAllOfType(packageType string) []*extractor.Inventory
GetAllOfType lists all detected software inventory of a given purl package type (e.g. "deb" "golang" "pypi").
func (*InventoryIndex) GetSpecific ¶
func (ix *InventoryIndex) GetSpecific(name string, packageType string) []*extractor.Inventory
GetSpecific lists all versions of a software with the specified name+package type.
Click to show internal directories.
Click to hide internal directories.