qcow2reader

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 4

README

go-qcow2reader

Go Reference

go-qcow2reader provides io.ReaderAt for qcow2 images.

Use io.NewSectionReader to wrap io.ReaderAt into io.Reader:

f, _ := os.Open("a.qcow2")
defer f.Close()
img, _ := qcow2reader.Open(f)
r := io.NewSectionReader(img, 0, img.Size()))

The following features are not supported yet:

The following features are experimentally supported:

Documentation

Index

Constants

This section is empty.

Variables

Types is the known image types.

Functions

func Open

func Open(ra io.ReaderAt) (image.Image, error)

Open opens an image.

func OpenWithType

func OpenWithType(ra io.ReaderAt, t image.Type) (image.Image, error)

OpenWithType open opens an image with the specified image.Type.

Types

This section is empty.

Directories

Path Synopsis
cmd
raw
vdi
vpc
test

Jump to

Keyboard shortcuts

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