package libvhd2tar
import "github.com/Microsoft/opengcs/service/gcsutils/libvhd2tar"
Index ¶
- func VHD2Tar(in io.Reader, out io.Writer, options *Options) (int64, error)
- func VHDX2Tar(mntPath string, out io.Writer, options *Options) (int64, error)
- type Options
Functions ¶
func VHD2Tar ¶
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 ¶
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 ¶
- Version
- v0.4.0 (latest)
- Published
- Dec 4, 2020
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 8 hours ago –
Tools for package owners.