package vhd

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

Index

Types

type Converter

type Converter interface {
	ConvertToVHD(f *os.File) error
	ConvertFromVHD(f *os.File) error
}

Converter converts a disk image to and from a VHD format.

type FixedVHDConverter

type FixedVHDConverter struct{}

FixedVHDConverter converts a disk image to a fixed VHD (not VHDX)

func (FixedVHDConverter) ConvertFromVHD

func (FixedVHDConverter) ConvertFromVHD(f *os.File) error

ConvertFromVHD converts a fixed VHD to a normal disk image.

func (FixedVHDConverter) ConvertToVHD

func (FixedVHDConverter) ConvertToVHD(f *os.File) error

ConvertToVHD Implementation for converting disk image to a fixed VHD

Source Files

fixed_vhd_header.go vhd_converter.go

Version
v0.3.5
Published
Jan 18, 2018
Platform
linux/amd64
Imports
7 packages
Last checked
1 hour ago

Tools for package owners.