service

package
v0.29.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 10 Imported by: 1

Documentation

Index

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) GetVirtualHardDiskConfig added in v0.25.1

func (ims *ImageManagementService) GetVirtualHardDiskConfig(path string) (size uint64,
	blockSize uint32,
	lSectorSize uint32,
	pSectorSize uint32,
	format uint16,
	err error)

func (*ImageManagementService) ResizeDisk

func (ims *ImageManagementService) ResizeDisk(path string, size uint64) (err error)

ResizeDisk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL