utils

package
v0.0.0-...-2d20427 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResourceSetting

func AddResourceSetting(svc *wmi.Result, settingsData []string, vmPath string) ([]string, error)

AddResourceSetting adds the resource settings to the specified VM

func GetElementsAssociatedClass

func GetElementsAssociatedClass(conn *wmi.WMI, className, instanceID string, extraQParams []wmi.Query) ([]string, error)

GetElementsAssociatedClass returns a list of WMI paths to class instances identified by instanceID

func GetResourceAllocSettings

func GetResourceAllocSettings(con *wmi.WMI, resourceSubType string, class string) (*wmi.Result, error)

GetResourceAllocSettings gets the resource allocation settings for the specified resoutce sub type and class.

func RemoveResourceSettings

func RemoveResourceSettings(svc *wmi.Result, resources []string) error

RemoveResourceSettings removes a list of resource settings

func UUID4

func UUID4() (string, error)

UUID4 returns a new UUID4

Types

This section is empty.

Jump to

Keyboard shortcuts

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