vmdk

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

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

func New

func New() filesystem.Extractor

New returns a new VMDK extractor.

func NewDefault

func NewDefault() filesystem.Extractor

NewDefault returns a New()

Types

type Extractor

type Extractor struct{}

Extractor implements the filesystem.Extractor interface for vmdk.

func (*Extractor) Extract

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) Name

func (e *Extractor) Name() string

Name returns the name of the extractor.

func (*Extractor) Requirements

func (e *Extractor) Requirements() *plugin.Capabilities

Requirements returns the requirements for the extractor.

func (*Extractor) Version

func (e *Extractor) Version() int

Version returns the version of the extractor.

Jump to

Keyboard shortcuts

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