Documentation ¶
Index ¶
- func AddResourceSetting(svc *wmi.Result, settingsData []string, vmPath string) ([]string, error)
- func GetElementsAssociatedClass(conn *wmi.WMI, className, instanceID string, extraQParams []wmi.Query) ([]string, error)
- func GetResourceAllocSettings(con *wmi.WMI, resourceSubType string, class string) (*wmi.Result, error)
- func RemoveResourceSettings(svc *wmi.Result, resources []string) error
- func UUID4() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResourceSetting ¶
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 ¶
RemoveResourceSettings removes a list of resource settings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.