inventoryindex

package
v0.1.2 Latest Latest
Warning

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

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

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.

Jump to

Keyboard shortcuts

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