libvhd2tar

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VHD2Tar

func VHD2Tar(in io.Reader, out io.Writer, options *Options) (int64, error)

VHD2Tar takes in a vhd and outputs a tar stream containing the files in the vhd. It also returns the size of the tar stream.

func VHDX2Tar

func VHDX2Tar(mntPath string, out io.Writer, options *Options) (int64, error)

VHDX2Tar takes in a folder (can be mounted from an attached VHDX) and returns a tar stream containing the contents of the folder. It also returns the size of the tar stream.

Types

type Options

type Options struct {
	TarOpts       *archive.TarOptions // Docker's archive.TarOptions struct
	TempDirectory string              // Temp directory used for the conversions
}

Options contains the configuration parameters that get passed to the vhd2tar library.

Jump to

Keyboard shortcuts

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