ova

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ova reads Open Virtualization Appliance (.ova) archives. An OVA is a tar archive holding an OVF descriptor (.ovf) plus one or more VMware disk images (.vmdk). This package exposes those disks as random-access readers so the rest of udf can walk their partitions and filesystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

type Disk struct {
	Name string // vmdk basename
	// contains filtered or unexported fields
}

Disk is one virtual disk inside an OVA or referenced by an OVF descriptor.

func (*Disk) Close

func (d *Disk) Close() error

Close releases the file backing this disk, deleting it when it is a private temporary (OVA).

func (*Disk) ReadAt

func (d *Disk) ReadAt(p []byte, off int64) (int, error)

ReadAt delegates to the underlying VMDK disk.

func (*Disk) Size

func (d *Disk) Size() int64

Size returns the virtual disk size in bytes.

type Image

type Image struct {
	Disks []*Disk
}

Image is an opened OVA archive.

func OpenFile

func OpenFile(path string) (*Image, error)

OpenFile opens the .ova archive at path, extracting each contained .vmdk.

func OpenOVF

func OpenOVF(path string) (*Image, error)

OpenOVF opens a standalone OVF descriptor (.ovf) and the VMDK disk files it references from its own directory. Unlike an OVA (a tar), a standalone OVF references sibling files directly, so the disks are not copied to temporaries and Close leaves the user's files in place.

func (*Image) Close

func (img *Image) Close() error

Close releases every disk.

Jump to

Keyboard shortcuts

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