Versions in this module Expand all Collapse all v1 v1.3.2 Oct 29, 2018 Changes in this version + func DoesVirtualMachineExist(vmName string) (bool, error) + func DoesVirtualMachineSnapshotExist(vmName string, snapshotName string) (bool, error) + func GetHostAvailableMemory() float64 + func GetHostName(ip string) (string, error) + func GetVirtualMachineGeneration(vmName string) (uint, error) + func HasVirtualMachineVirtualizationExtensions() (bool, error) + func IsCurrentUserAnAdministrator() (bool, error) + func IsFalse(s string) bool + func IsPowershellAvailable() (bool, string, error) + func IsTrue(s string) bool + func IsVirtualMachineOn(vmName string) (bool, error) + func ModuleExists(moduleName string) (bool, error) + func SetUnattendedProductKey(path string, productKey string) error + type PowerShellCmd struct + Stderr io.Writer + Stdout io.Writer + func (ps *PowerShellCmd) Output(fileContents string, params ...string) (string, error) + func (ps *PowerShellCmd) Run(fileContents string, params ...string) error + type ScriptBuilder struct + func (b *ScriptBuilder) Reset() + func (b *ScriptBuilder) String() string + func (b *ScriptBuilder) WriteLine(s string) (n int, err error) + func (b *ScriptBuilder) WriteString(s string) (n int, err error)