Documentation ¶
Index ¶
- type ImgInfo
- type QemuImg
- func (q *QemuImg) Copy(source *QemuImg) error
- func (q *QemuImg) Create(bytes uint64) error
- func (q QemuImg) CreateBackingFile(path string) (*QemuImg, error)
- func (q *QemuImg) Delete() error
- func (q *QemuImg) Download(src *url.URL) error
- func (q QemuImg) IsExists() bool
- func (q *QemuImg) Resize(bytes uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImgInfo ¶
type ImgInfo struct { VirtualSize uint64 `json:"virtual-size"` Filename string `json:"filename"` ClusterSize uint64 `json:"cluster-size"` Format string `json:"format"` ActuralSize uint64 `json:"actual-size"` FormatSpecific map[string]interface{} `json:"format-specific"` BackingFilename string `json:"backing-filename"` DirtyFlag bool `json:"dirty-flag"` }
ImgInfo is response of `qemu-img info`.
type QemuImg ¶
type QemuImg struct { Info *ImgInfo // contains filtered or unexported fields }
func OpenQemuImg ¶
func (QemuImg) CreateBackingFile ¶
Click to show internal directories.
Click to hide internal directories.