Documentation
¶
Index ¶
- type ImageManagementService
- func (ims *ImageManagementService) CreateDisk(settings *disk.VirtualHardDiskSettingData) (err error)
- func (ims *ImageManagementService) CreateDiskEx(path string, logicalSectorSize, physicalSectorSize, blockSize uint32, ...) (err error)
- func (ims *ImageManagementService) GetBaseVirtualHardDiskPath(vhdpath string) (path string, parentPath string, err error)
- func (ims *ImageManagementService) GetVirtualHardDiskConfig(path string) (size uint64, blockSize uint32, lSectorSize uint32, pSectorSize uint32, ...)
- func (ims *ImageManagementService) ResizeDisk(path string, size uint64) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageManagementService ¶
type ImageManagementService struct {
*v2.Msvm_ImageManagementService
}
func GetImageManagementService ¶
func GetImageManagementService(whost *host.WmiHost) (mgmt *ImageManagementService, err error)
GetVirtualEthernetSwitchManagementService gets the VMMS Switch Management Service
func (*ImageManagementService) CreateDisk ¶
func (ims *ImageManagementService) CreateDisk(settings *disk.VirtualHardDiskSettingData) (err error)
CreateDisk
func (*ImageManagementService) CreateDiskEx ¶
func (ims *ImageManagementService) CreateDiskEx(path string, logicalSectorSize, physicalSectorSize, blockSize uint32, diskSize uint64, dynamic bool, diskFileFormat disk.VirtualHardDiskFormat) (err error)
CreateDiskEx
func (*ImageManagementService) GetBaseVirtualHardDiskPath ¶ added in v0.38.2
func (ims *ImageManagementService) GetBaseVirtualHardDiskPath(vhdpath string) (path string, parentPath string, err error)
This method recursively calls the checkpoint chain until the parent path is empty which represents the base disk
func (*ImageManagementService) GetVirtualHardDiskConfig ¶ added in v0.25.1
func (*ImageManagementService) ResizeDisk ¶
func (ims *ImageManagementService) ResizeDisk(path string, size uint64) (err error)
ResizeDisk
Click to show internal directories.
Click to hide internal directories.