Documentation ¶
Index ¶
Constants ¶
const ( VmxTemplateVarName = "VMXTEMPLATE" OvfVarName = "OVFINFO" OvaType = "ova" )
OvaType represents the ova format
const ( // VhdType represents the vhd virtual drive format VhdType = "vhd" // VhdxType represents the vhdx virtual drive format VhdxType = "vhdx" )
const DiffType = "diff"
DiffType represents the diff file system format
const Ext4Type = "ext4"
Ext4Type represents the ext4 file system format
const GzipType = "gz"
GzipType represents the gzip format
const InitrdType = "initrd"
InitrdType represents the format for a compressed initrd file loaded by the Linux kernel at boot
const (
// QcowType represents the qcow2 virtual drive format
QcowType = "qcow2"
)
const RawType = "raw"
RawType represents the raw format (no conversion)
const RdiffType = "rdiff"
RdiffType represents the rdiff file system format
const SquashFSType = "squashfs"
SquashFSType represents the squashfs format
const TarGzipType = "tar.gz"
TarGzipType represents the tar.gz format
const TarXzType = "tar.xz"
TarXzType represents the tar.xz format
const XzType = "xz"
XzType represents the xz format
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter interface { Convert(input, output string, isInputFile bool) error Extension() string }
Converter allows to save the raw disk image as a different image format
type Diff ¶
type Diff struct { }
Diff implements Converter interface for Diff partitions
type Ext4 ¶
type Ext4 struct { }
Ext4 implements Converter interface for Ext4 partitions
type Gzip ¶
type Gzip struct { }
Gzip implements Converter interface to convert a RAW image into a gzipped file
type Initrd ¶
type Initrd struct { }
Initrd implements Converter interface to convert a directory into an initrd.
type Ova ¶
type Ova struct { }
Ova implements Converter interface to convert a RAW image into an OVA file
type Qcow ¶
type Qcow struct { }
Qcow implements Converter interface to convert a RAW image into a qcow2 file
type Raw ¶
type Raw struct { }
Raw implements Converter interface for RAW images
type Rdiff ¶
type Rdiff struct { }
Rdiff implements Converter interface for Rdiff partitions
type SquashFS ¶
type SquashFS struct { }
SquashFS implements Converter interface to convert a RAW image into a squashfs file
type TarGzip ¶
type TarGzip struct { }
TarGzip implements Converter interface to convert a RAW image into a tar.gz file
type TarXz ¶
type TarXz struct { }
TarXz implements Converter interface to convert a RAW image into a tar.xz file
type Vhd ¶
type Vhd struct {
// contains filtered or unexported fields
}
Vhd implements Converter interface to convert a RAW image into a VHD(x) file