package libtar2vhd
import "github.com/Microsoft/opengcs/service/gcsutils/libtar2vhd"
Index ¶
- func Tar2VHD(in io.Reader, out io.Writer, options *Options) (int64, error)
- 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 Tar2VHD ¶
Tar2VHD takes in a tarstream and outputs a vhd containing the files. It also returns the size of the outputted VHD file.
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 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.
Source Files ¶
- Version
- v0.3.1
- Published
- Aug 8, 2017
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 1 hour ago –
Tools for package owners.