Documentation
¶
Overview ¶
Package archive provides an extractor for extracting software inventories from archives
Index ¶
Constants ¶
View Source
const (
// Name is the unique identifier for the archive extractor.
Name = "embeddedfs/archive"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor implements the filesystem.Extractor interface for archive extraction.
func (*Extractor) Extract ¶
func (e *Extractor) Extract(ctx context.Context, input *filesystem.ScanInput) (inventory.Inventory, error)
Extract returns an Inventory with embedded filesystems for the given archive file.
func (*Extractor) FileRequired ¶
func (e *Extractor) FileRequired(api filesystem.FileAPI) bool
FileRequired checks if the file is a supported archive.
func (*Extractor) Requirements ¶
func (e *Extractor) Requirements() *plugin.Capabilities
Requirements returns the requirements for the extractor.
Click to show internal directories.
Click to hide internal directories.