Documentation
¶
Overview ¶
Package vdi provides an extractor for extracting software inventories from VirtualBox's VDI disk images
Index ¶
Constants ¶
View Source
const ( // Name is the unique identifier for the vdi extractor. Name = "embeddedfs/vdi" // Signature is always 0xBEDA107F. // Reference : https://github.com/qemu/qemu/blob/master/block/vdi.c#L107 // Reference : https://forums.virtualbox.org/viewtopic.php?t=8046 Signature = 0xBEDA107F )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor implements the filesystem.Extractor interface for vdi.
func (*Extractor) Extract ¶
func (e *Extractor) Extract(ctx context.Context, input *filesystem.ScanInput) (inventory.Inventory, error)
Extract returns an Inventory with embedded filesystems which contains mount functions for each filesystem in the .vdi file.
func (*Extractor) FileRequired ¶
func (e *Extractor) FileRequired(api filesystem.FileAPI) bool
FileRequired checks if the file is a .vdi file based on its extension.
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.