package libvhd2tar

import "github.com/Microsoft/opengcs/service/gcsutils/libvhd2tar"

Index

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.

Source Files

vhd2tar.go

Version
v0.4.0 (latest)
Published
Dec 4, 2020
Platform
linux/amd64
Imports
10 packages
Last checked
8 hours ago

Tools for package owners.