Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptableAsBasedisk ¶ added in v0.16.0
func ConvertToRaw ¶ added in v0.15.1
Types ¶
type Info ¶
type Info struct { Filename string `json:"filename,omitempty"` // since QEMU 1.3 Format string `json:"format,omitempty"` // since QEMU 1.3 VSize int64 `json:"virtual-size,omitempty"` // since QEMU 1.3 ActualSize int64 `json:"actual-size,omitempty"` // since QEMU 1.3 DirtyFlag bool `json:"dirty-flag,omitempty"` // since QEMU 5.2 ClusterSize int `json:"cluster-size,omitempty"` // since QEMU 1.3 BackingFilename string `json:"backing-filename,omitempty"` // since QEMU 1.3 FullBackingFilename string `json:"full-backing-filename,omitempty"` // since QEMU 1.3 BackingFilenameFormat string `json:"backing-filename-format,omitempty"` // since QEMU 1.3 FormatSpecific *InfoFormatSpecific `json:"format-specific,omitempty"` // since QEMU 1.7 Children []InfoChild `json:"children,omitempty"` // since QEMU 8.0 }
Info corresponds to the output of `qemu-img info --output=json FILE`.
type InfoFormatSpecific ¶ added in v0.16.0
type InfoFormatSpecific struct { Type string `json:"type,omitempty"` // since QEMU 1.7 Data json.RawMessage `json:"data,omitempty"` // since QEMU 1.7 }
func (*InfoFormatSpecific) Qcow2 ¶ added in v0.16.0
func (sp *InfoFormatSpecific) Qcow2() *InfoFormatSpecificDataQcow2
func (*InfoFormatSpecific) Vmdk ¶ added in v0.16.0
func (sp *InfoFormatSpecific) Vmdk() *InfoFormatSpecificDataVmdk
type InfoFormatSpecificDataQcow2 ¶ added in v0.16.0
type InfoFormatSpecificDataQcow2 struct { Compat string `json:"compat,omitempty"` // since QEMU 1.7 LazyRefcounts bool `json:"lazy-refcounts,omitempty"` // since QEMU 1.7 Corrupt bool `json:"corrupt,omitempty"` // since QEMU 2.2 RefcountBits int `json:"refcount-bits,omitempty"` // since QEMU 2.3 CompressionType string `json:"compression-type,omitempty"` // since QEMU 5.1 ExtendedL2 bool `json:"extended-l2,omitempty"` // since QEMU 5.2 }
type InfoFormatSpecificDataVmdk ¶ added in v0.16.0
type InfoFormatSpecificDataVmdk struct { CreateType string `json:"create-type,omitempty"` // since QEMU 1.7 CID int `json:"cid,omitempty"` // since QEMU 1.7 ParentCID int `json:"parent-cid,omitempty"` // since QEMU 1.7 Extents []InfoFormatSpecificDataVmdkExtent `json:"extents,omitempty"` // since QEMU 1.7 }
type InfoFormatSpecificDataVmdkExtent ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.