libtar2vhd

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tar2VHD

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

Tar2VHD takes in a tarstream and outputs a vhd containing the files. It also returns the size of the outputted VHD file.

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
	Filesystem    fs.Filesystem       // Interface for type of filesystem
	Converter     vhd.Converter       // Interface for type of whiteout file
	TempDirectory string              // Temp directory used for the conversions
}

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

Jump to

Keyboard shortcuts

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