Documentation
¶
Overview ¶
Package vmdk provides an extractor for extracting software inventories from VMDK disk images
Index ¶
Constants ¶
View Source
const ( // Name is the unique identifier for the vmdk extractor. Name = "embeddedfs/vmdk" // SectorSize is the default sector size (512 bytes). SectorSize = 512 // SparseMagic is always 'KDMV'. SparseMagic = 0x564d444b // GDAtEnd indicates that the Grain Directory is stored in the footer at the end of the VMDK file. GDAtEnd = 0xFFFFFFFFFFFFFFFF // DefaultGrainSec is default sectors if header invalid (64KiB). DefaultGrainSec = 128 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor implements the filesystem.Extractor interface for vmdk.
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 .vmdk file.
func (*Extractor) FileRequired ¶
func (e *Extractor) FileRequired(api filesystem.FileAPI) bool
FileRequired checks if the file is a .vmdk 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.