Documentation ¶
Index ¶
- Variables
- func DefaultVmFirmwares() (interface{}, error)
- func DefaultVmIntegrationServices() (interface{}, error)
- func DefaultVmProcessors() (interface{}, error)
- func DiffSuppressVmHardDiskPath(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmIntegrationServices(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmProcessorMaximumCountPerNumaNode(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmProcessorMaximumCountPerNumaSocket(key, old, new string, d *schema.ResourceData) bool
- func DiffSuppressVmStaticMacAddress(key, old, new string, d *schema.ResourceData) bool
- func ExpandDvdDrives(d *schema.ResourceData) ([]vmDvdDrive, error)
- func ExpandHardDiskDrives(d *schema.ResourceData) ([]vmHardDiskDrive, error)
- func ExpandIntegrationServices(d *schema.ResourceData) ([]vmIntegrationService, error)
- func ExpandNetworkAdapters(d *schema.ResourceData) ([]vmNetworkAdapter, error)
- func ExpandVmFirmwares(d *schema.ResourceData) ([]vmFirmware, error)
- func ExpandVmNetworkAdapterWaitForIps(d *schema.ResourceData) ([]vmNetworkAdapterWaitForIp, uint32, uint32, error)
- func ExpandVmProcessors(d *schema.ResourceData) ([]vmProcessor, error)
- func ExpandVmStateWaitForState(d *schema.ResourceData) (uint32, uint32, error)
- func FlattenDvdDrives(dvdDrives *[]vmDvdDrive) []interface{}
- func FlattenHardDiskDrives(hardDiskDrives *[]vmHardDiskDrive) []interface{}
- func FlattenIntegrationServices(integrationServices *[]vmIntegrationService) map[string]interface{}
- func FlattenMandatoryFeatureIds(mandatoryFeatureIdStrings []string) *schema.Set
- func FlattenNetworkAdapters(networkAdapters *[]vmNetworkAdapter) []interface{}
- func FlattenVmFirmwares(vmFirmwares *[]vmFirmware) []interface{}
- func FlattenVmProcessors(vmProcessors *[]vmProcessor) []interface{}
- func GetChangedIntegrationServices(vmIntegrationServices []vmIntegrationService, d *schema.ResourceData) []vmIntegrationService
- type CacheAttributes
- type CheckpointType
- type ConsoleModeType
- type ControllerType
- type CriticalErrorAction
- type HypervClient
- func (c *HypervClient) CreateOrUpdateVhd(path string, source string, sourceVm string, sourceDisk int, vhdType VhdType, ...) (err error)
- func (c *HypervClient) CreateOrUpdateVmDvdDrives(vmName string, dvdDrives []vmDvdDrive) (err error)
- func (c *HypervClient) CreateOrUpdateVmFirmware(vmName string, enableSecureBoot OnOffState, secureBootTemplate string, ...) (err error)
- func (c *HypervClient) CreateOrUpdateVmFirmwares(vmName string, vmFirmwares []vmFirmware) (err error)
- func (c *HypervClient) CreateOrUpdateVmHardDiskDrives(vmName string, hardDiskDrives []vmHardDiskDrive) (err error)
- func (c *HypervClient) CreateOrUpdateVmIntegrationServices(vmName string, integrationServices []vmIntegrationService) (err error)
- func (c *HypervClient) CreateOrUpdateVmNetworkAdapters(vmName string, networkAdapters []vmNetworkAdapter) (err error)
- func (c *HypervClient) CreateOrUpdateVmProcessor(vmName string, compatibilityForMigrationEnabled bool, ...) (err error)
- func (c *HypervClient) CreateOrUpdateVmProcessors(vmName string, vmProcessors []vmProcessor) (err error)
- func (c *HypervClient) CreateVMSwitch(name string, notes string, allowManagementOS bool, embeddedTeamingEnabled bool, ...) (err error)
- func (c *HypervClient) CreateVm(name string, generation int, automaticCriticalErrorAction CriticalErrorAction, ...) (err error)
- func (c *HypervClient) CreateVmDvdDrive(vmName string, controllerNumber int, controllerLocation int, path string, ...) (err error)
- func (c *HypervClient) CreateVmHardDiskDrive(vmName string, controllerType ControllerType, controllerNumber int32, ...) (err error)
- func (c *HypervClient) CreateVmNetworkAdapter(vmName string, name string, switchName string, managementOs bool, ...) (err error)
- func (c *HypervClient) DeleteVMSwitch(name string) (err error)
- func (c *HypervClient) DeleteVhd(path string) (err error)
- func (c *HypervClient) DeleteVm(name string) (err error)
- func (c *HypervClient) DeleteVmDvdDrive(vmName string, controllerNumber int, controllerLocation int) (err error)
- func (c *HypervClient) DeleteVmHardDiskDrive(vmname string, controllerNumber int32, controllerLocation int32) (err error)
- func (c *HypervClient) DeleteVmNetworkAdapter(vmName string, index int) (err error)
- func (c *HypervClient) DisableVmIntegrationService(vmName string, name string) (err error)
- func (c *HypervClient) EnableVmIntegrationService(vmName string, name string) (err error)
- func (c *HypervClient) GetNoVmFirmwares() (result []vmFirmware)
- func (c *HypervClient) GetVMSwitch(name string) (result vmSwitch, err error)
- func (c *HypervClient) GetVhd(path string) (result vhd, err error)
- func (c *HypervClient) GetVm(name string) (result vm, err error)
- func (c *HypervClient) GetVmDvdDrives(vmName string) (result []vmDvdDrive, err error)
- func (c *HypervClient) GetVmFirmware(vmName string) (result vmFirmware, err error)
- func (c *HypervClient) GetVmFirmwares(vmName string) (result []vmFirmware, err error)
- func (c *HypervClient) GetVmHardDiskDrives(vmName string) (result []vmHardDiskDrive, err error)
- func (c *HypervClient) GetVmIntegrationServices(vmName string) (result []vmIntegrationService, err error)
- func (c *HypervClient) GetVmNetworkAdapters(vmName string, networkAdaptersWaitForIps []vmNetworkAdapterWaitForIp) (result []vmNetworkAdapter, err error)
- func (c *HypervClient) GetVmProcessor(vmName string) (result vmProcessor, err error)
- func (c *HypervClient) GetVmProcessors(vmName string) (result []vmProcessor, err error)
- func (c *HypervClient) GetVmState(vmName string) (result vmState, err error)
- func (c *HypervClient) ResizeVhd(path string, size uint64) (err error)
- func (c *HypervClient) UpdateVMSwitch(name string, notes string, allowManagementOS bool, switchType VMSwitchType, ...) (err error)
- func (c *HypervClient) UpdateVm(name string, automaticCriticalErrorAction CriticalErrorAction, ...) (err error)
- func (c *HypervClient) UpdateVmDvdDrive(vmName string, controllerNumber int, controllerLocation int, ...) (err error)
- func (c *HypervClient) UpdateVmHardDiskDrive(vmName string, controllerNumber int32, controllerLocation int32, ...) (err error)
- func (c *HypervClient) UpdateVmNetworkAdapter(vmName string, index int, name string, switchName string, managementOs bool, ...) (err error)
- func (c *HypervClient) UpdateVmState(vmName string, timeout uint32, pollPeriod uint32, state VmState) (err error)
- func (c *HypervClient) WaitForVmNetworkAdaptersIps(vmName string, timeout uint32, pollPeriod uint32, ...) (err error)
- type IPProtocolPreference
- type IovInterruptModerationValue
- type OnOffState
- type PortMirroring
- type StartAction
- type StopAction
- type VMSwitchBandwidthMode
- type VMSwitchType
- type VhdFormat
- type VhdType
- type VmState
Constants ¶
This section is empty.
Variables ¶
View Source
var CacheAttributes_name = map[CacheAttributes]string{ CacheAttributes_Default: "Default", CacheAttributes_WriteCacheEnabled: "WriteCacheEnabled", CacheAttributes_WriteCacheAndFUAEnabled: "WriteCacheAndFUAEnabled", CacheAttributes_WriteCacheDisabled: "WriteCacheDisabled", }
View Source
var CacheAttributes_value = map[string]CacheAttributes{ "default": CacheAttributes_Default, "writecacheenabled": CacheAttributes_WriteCacheEnabled, "writecacheandfuaenabled": CacheAttributes_WriteCacheAndFUAEnabled, "writecachedisabled": CacheAttributes_WriteCacheDisabled, }
View Source
var CheckpointType_name = map[CheckpointType]string{ CheckpointType_Disabled: "Disabled", CheckpointType_Production: "Production", CheckpointType_ProductionOnly: "ProductionOnly", CheckpointType_Standard: "Standard", }
View Source
var CheckpointType_value = map[string]CheckpointType{ "disabled": CheckpointType_Disabled, "production": CheckpointType_Production, "productiononly": CheckpointType_ProductionOnly, "standard": CheckpointType_Standard, }
View Source
var ConsoleModeType_name = map[ConsoleModeType]string{ ConsoleModeType_Default: "Default", ConsoleModeType_Com1: "COM1", ConsoleModeType_Com2: "COM2", ConsoleModeType_None: "None", }
View Source
var ConsoleModeType_value = map[string]ConsoleModeType{ "default": ConsoleModeType_Default, "com1": ConsoleModeType_Com1, "com2": ConsoleModeType_Com2, "none": ConsoleModeType_None, }
View Source
var ControllerType_name = map[ControllerType]string{ ControllerType_Ide: "Ide", ControllerType_Scsi: "Scsi", }
View Source
var ControllerType_value = map[string]ControllerType{ "ide": ControllerType_Ide, "scsi": ControllerType_Scsi, }
View Source
var CriticalErrorAction_name = map[CriticalErrorAction]string{ CriticalErrorAction_None: "None", CriticalErrorAction_Pause: "Pause", }
View Source
var CriticalErrorAction_value = map[string]CriticalErrorAction{ "none": CriticalErrorAction_None, "pause": CriticalErrorAction_Pause, }
View Source
var IPProtocolPreference_name = map[IPProtocolPreference]string{ IPProtocolPreference_IPv4: "IPv4", IPProtocolPreference_IPv6: "IPv6", }
View Source
var IPProtocolPreference_value = map[string]IPProtocolPreference{ "ipv4": IPProtocolPreference_IPv4, "ipv6": IPProtocolPreference_IPv6, }
View Source
var IovInterruptModerationValue_name = map[IovInterruptModerationValue]string{ IovInterruptModerationValue_Default: "Default", IovInterruptModerationValue_Adaptive: "Adaptive", IovInterruptModerationValue_Off: "Off", IovInterruptModerationValue_Low: "Low", IovInterruptModerationValue_Medium: "Medium", IovInterruptModerationValue_High: "High", }
View Source
var IovInterruptModerationValue_value = map[string]IovInterruptModerationValue{ "default": IovInterruptModerationValue_Default, "adaptive": IovInterruptModerationValue_Adaptive, "off": IovInterruptModerationValue_Off, "low": IovInterruptModerationValue_Low, "medium": IovInterruptModerationValue_Medium, "high": IovInterruptModerationValue_High, }
View Source
var OnOffState_name = map[OnOffState]string{ OnOffState_On: "On", OnOffState_Off: "Off", }
View Source
var OnOffState_value = map[string]OnOffState{ "on": OnOffState_On, "off": OnOffState_Off, }
View Source
var PortMirroring_name = map[PortMirroring]string{ PortMirroring_None: "None", PortMirroring_Destination: "Destination", PortMirroring_Source: "Source", }
View Source
var PortMirroring_value = map[string]PortMirroring{ "none": PortMirroring_None, "destination": PortMirroring_Destination, "source": PortMirroring_Source, }
View Source
var StartAction_name = map[StartAction]string{ StartAction_Nothing: "Nothing", StartAction_StartIfRunning: "StartIfRunning", StartAction_Start: "Start", }
View Source
var StartAction_value = map[string]StartAction{ "nothing": StartAction_Nothing, "startifrunning": StartAction_StartIfRunning, "start": StartAction_Start, }
View Source
var StopAction_name = map[StopAction]string{ StopAction_TurnOff: "TurnOff", StopAction_Save: "Save", StopAction_ShutDown: "ShutDown", }
View Source
var StopAction_value = map[string]StopAction{ "turnoff": StopAction_TurnOff, "save": StopAction_Save, "shutdown": StopAction_ShutDown, }
View Source
var VMSwitchBandwidthMode_name = map[VMSwitchBandwidthMode]string{ VMSwitchBandwidthMode_Default: "Default", VMSwitchBandwidthMode_Weight: "Weight", VMSwitchBandwidthMode_Absolute: "Absolute", VMSwitchBandwidthMode_None: "None", }
View Source
var VMSwitchBandwidthMode_value = map[string]VMSwitchBandwidthMode{ "default": VMSwitchBandwidthMode_Default, "weight": VMSwitchBandwidthMode_Weight, "absolute": VMSwitchBandwidthMode_Absolute, "none": VMSwitchBandwidthMode_None, }
View Source
var VMSwitchType_name = map[VMSwitchType]string{ VMSwitchType_Private: "Private", VMSwitchType_Internal: "Internal", VMSwitchType_External: "External", }
View Source
var VMSwitchType_value = map[string]VMSwitchType{ "private": VMSwitchType_Private, "internal": VMSwitchType_Internal, "external": VMSwitchType_External, }
View Source
var VhdFormat_name = map[VhdFormat]string{ VhdFormat_Unknown: "Unknown", VhdFormat_VHD: "VHD", VhdFormat_VHDX: "VHDX", VhdFormat_VHDSet: "VHDSet", }
View Source
var VhdFormat_value = map[string]VhdFormat{ "unknown": VhdFormat_Unknown, "vhd": VhdFormat_VHD, "vhdx": VhdFormat_VHDX, "vhdset": VhdFormat_VHDSet, }
View Source
var VhdType_name = map[VhdType]string{ VhdType_Unknown: "Unknown", VhdType_Fixed: "Fixed", VhdType_Dynamic: "Dynamic", VhdType_Differencing: "Differencing", }
View Source
var VhdType_value = map[string]VhdType{ "unknown": VhdType_Unknown, "fixed": VhdType_Fixed, "dynamic": VhdType_Dynamic, "differencing": VhdType_Differencing, }
View Source
var VmState_SettableValue = map[string]VmState{ "running": VmState_Running, "off": VmState_Off, }
View Source
var VmState_name = map[VmState]string{ VmState_Other: "Other", VmState_Running: "Running", VmState_Off: "Off", VmState_Stopping: "Stopping", VmState_Saved: "Saved", VmState_Paused: "Paused", VmState_Starting: "Starting", VmState_Reset: "Reset", VmState_Saving: "Saving", VmState_Pausing: "Pausing", VmState_Resuming: "Resuming", VmState_FastSaved: "FastSaved", VmState_FastSaving: "FastSaving", VmState_ForceShutdown: "ForceShutdown", VmState_ForceReboot: "ForceReboot", VmState_RunningCritical: "RunningCritical", VmState_OffCritical: "OffCritical", VmState_StoppingCritical: "StoppingCritical", VmState_SavedCritical: "SavedCritical", VmState_PausedCritical: "PausedCritical", VmState_StartingCritical: "StartingCritical", VmState_ResetCritical: "ResetCritical", VmState_SavingCritical: "SavingCritical", VmState_PausingCritical: "PausingCritical", VmState_ResumingCritical: "ResumingCritical", VmState_FastSavedCritical: "FastSavedCritical", VmState_FastSavingCritical: "FastSavingCritical", }
View Source
var VmState_value = map[string]VmState{ "other": VmState_Other, "running": VmState_Running, "off": VmState_Off, "stopping": VmState_Stopping, "saved": VmState_Saved, "paused": VmState_Paused, "starting": VmState_Starting, "reset": VmState_Reset, "saving": VmState_Saving, "pausing": VmState_Pausing, "resuming": VmState_Resuming, "fastsaved": VmState_FastSaved, "fastsaving": VmState_FastSaving, "forceshutdown": VmState_ForceShutdown, "forcereboot": VmState_ForceReboot, "runningcritical": VmState_RunningCritical, "offcritical": VmState_OffCritical, "stoppingcritical": VmState_StoppingCritical, "savedcritical": VmState_SavedCritical, "pausedcritical": VmState_PausedCritical, "startingcritical": VmState_StartingCritical, "resetcritical": VmState_ResetCritical, "savingcritical": VmState_SavingCritical, "pausingcritical": VmState_PausingCritical, "resumingcritical": VmState_ResumingCritical, "fastsavedcritical": VmState_FastSavedCritical, "fastsavingcritical": VmState_FastSavingCritical, }
Functions ¶
func DefaultVmFirmwares ¶
func DefaultVmFirmwares() (interface{}, error)
func DefaultVmIntegrationServices ¶
func DefaultVmIntegrationServices() (interface{}, error)
func DefaultVmProcessors ¶
func DefaultVmProcessors() (interface{}, error)
func DiffSuppressVmHardDiskPath ¶
func DiffSuppressVmHardDiskPath(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmIntegrationServices ¶
func DiffSuppressVmIntegrationServices(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmProcessorMaximumCountPerNumaNode ¶
func DiffSuppressVmProcessorMaximumCountPerNumaNode(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmProcessorMaximumCountPerNumaSocket ¶
func DiffSuppressVmProcessorMaximumCountPerNumaSocket(key, old, new string, d *schema.ResourceData) bool
func DiffSuppressVmStaticMacAddress ¶
func DiffSuppressVmStaticMacAddress(key, old, new string, d *schema.ResourceData) bool
func ExpandDvdDrives ¶
func ExpandDvdDrives(d *schema.ResourceData) ([]vmDvdDrive, error)
func ExpandHardDiskDrives ¶
func ExpandHardDiskDrives(d *schema.ResourceData) ([]vmHardDiskDrive, error)
func ExpandIntegrationServices ¶
func ExpandIntegrationServices(d *schema.ResourceData) ([]vmIntegrationService, error)
func ExpandNetworkAdapters ¶
func ExpandNetworkAdapters(d *schema.ResourceData) ([]vmNetworkAdapter, error)
func ExpandVmFirmwares ¶
func ExpandVmFirmwares(d *schema.ResourceData) ([]vmFirmware, error)
func ExpandVmNetworkAdapterWaitForIps ¶
func ExpandVmNetworkAdapterWaitForIps(d *schema.ResourceData) ([]vmNetworkAdapterWaitForIp, uint32, uint32, error)
func ExpandVmProcessors ¶
func ExpandVmProcessors(d *schema.ResourceData) ([]vmProcessor, error)
func ExpandVmStateWaitForState ¶
func ExpandVmStateWaitForState(d *schema.ResourceData) (uint32, uint32, error)
func FlattenDvdDrives ¶
func FlattenDvdDrives(dvdDrives *[]vmDvdDrive) []interface{}
func FlattenHardDiskDrives ¶
func FlattenHardDiskDrives(hardDiskDrives *[]vmHardDiskDrive) []interface{}
func FlattenIntegrationServices ¶
func FlattenIntegrationServices(integrationServices *[]vmIntegrationService) map[string]interface{}
func FlattenNetworkAdapters ¶
func FlattenNetworkAdapters(networkAdapters *[]vmNetworkAdapter) []interface{}
func FlattenVmFirmwares ¶
func FlattenVmFirmwares(vmFirmwares *[]vmFirmware) []interface{}
func FlattenVmProcessors ¶
func FlattenVmProcessors(vmProcessors *[]vmProcessor) []interface{}
func GetChangedIntegrationServices ¶
func GetChangedIntegrationServices(vmIntegrationServices []vmIntegrationService, d *schema.ResourceData) []vmIntegrationService
Types ¶
type CacheAttributes ¶
type CacheAttributes int
const ( CacheAttributes_Default CacheAttributes = 0 CacheAttributes_WriteCacheEnabled CacheAttributes = 1 CacheAttributes_WriteCacheAndFUAEnabled CacheAttributes = 2 CacheAttributes_WriteCacheDisabled CacheAttributes = 3 )
func ToCacheAttributes ¶
func ToCacheAttributes(x string) CacheAttributes
func (*CacheAttributes) MarshalJSON ¶
func (d *CacheAttributes) MarshalJSON() ([]byte, error)
func (CacheAttributes) String ¶
func (x CacheAttributes) String() string
func (*CacheAttributes) UnmarshalJSON ¶
func (d *CacheAttributes) UnmarshalJSON(b []byte) error
type CheckpointType ¶
type CheckpointType int
const ( CheckpointType_Disabled CheckpointType = 2 CheckpointType_Production CheckpointType = 3 CheckpointType_ProductionOnly CheckpointType = 4 CheckpointType_Standard CheckpointType = 5 )
func ToCheckpointType ¶
func ToCheckpointType(x string) CheckpointType
func (*CheckpointType) MarshalJSON ¶
func (d *CheckpointType) MarshalJSON() ([]byte, error)
func (CheckpointType) String ¶
func (x CheckpointType) String() string
func (*CheckpointType) UnmarshalJSON ¶
func (d *CheckpointType) UnmarshalJSON(b []byte) error
type ConsoleModeType ¶
type ConsoleModeType int
const ( ConsoleModeType_Default ConsoleModeType = 0 ConsoleModeType_Com1 ConsoleModeType = 1 ConsoleModeType_Com2 ConsoleModeType = 2 ConsoleModeType_None ConsoleModeType = 3 )
func ToConsoleModeType ¶
func ToConsoleModeType(x string) ConsoleModeType
func (*ConsoleModeType) MarshalJSON ¶
func (d *ConsoleModeType) MarshalJSON() ([]byte, error)
func (ConsoleModeType) String ¶
func (x ConsoleModeType) String() string
func (*ConsoleModeType) UnmarshalJSON ¶
func (d *ConsoleModeType) UnmarshalJSON(b []byte) error
type ControllerType ¶
type ControllerType int
const ( ControllerType_Ide ControllerType = 0 ControllerType_Scsi ControllerType = 1 )
func ToControllerType ¶
func ToControllerType(x string) ControllerType
func (*ControllerType) MarshalJSON ¶
func (d *ControllerType) MarshalJSON() ([]byte, error)
func (ControllerType) String ¶
func (x ControllerType) String() string
func (*ControllerType) UnmarshalJSON ¶
func (d *ControllerType) UnmarshalJSON(b []byte) error
type CriticalErrorAction ¶
type CriticalErrorAction int
const ( CriticalErrorAction_None CriticalErrorAction = 0 CriticalErrorAction_Pause CriticalErrorAction = 1 )
func ToCriticalErrorAction ¶
func ToCriticalErrorAction(x string) CriticalErrorAction
func (*CriticalErrorAction) MarshalJSON ¶
func (d *CriticalErrorAction) MarshalJSON() ([]byte, error)
func (CriticalErrorAction) String ¶
func (x CriticalErrorAction) String() string
func (*CriticalErrorAction) UnmarshalJSON ¶
func (d *CriticalErrorAction) UnmarshalJSON(b []byte) error
type HypervClient ¶
type HypervClient struct { WinRmClientPool *pool.ObjectPool ElevatedUser string ElevatedPassword string Vars string }
func (*HypervClient) CreateOrUpdateVhd ¶
func (*HypervClient) CreateOrUpdateVmDvdDrives ¶
func (c *HypervClient) CreateOrUpdateVmDvdDrives(vmName string, dvdDrives []vmDvdDrive) (err error)
func (*HypervClient) CreateOrUpdateVmFirmware ¶
func (c *HypervClient) CreateOrUpdateVmFirmware( vmName string, enableSecureBoot OnOffState, secureBootTemplate string, preferredNetworkBootProtocol IPProtocolPreference, consoleMode ConsoleModeType, pauseAfterBootFailure OnOffState, ) (err error)
func (*HypervClient) CreateOrUpdateVmFirmwares ¶
func (c *HypervClient) CreateOrUpdateVmFirmwares(vmName string, vmFirmwares []vmFirmware) (err error)
func (*HypervClient) CreateOrUpdateVmHardDiskDrives ¶
func (c *HypervClient) CreateOrUpdateVmHardDiskDrives(vmName string, hardDiskDrives []vmHardDiskDrive) (err error)
func (*HypervClient) CreateOrUpdateVmIntegrationServices ¶
func (c *HypervClient) CreateOrUpdateVmIntegrationServices(vmName string, integrationServices []vmIntegrationService) (err error)
func (*HypervClient) CreateOrUpdateVmNetworkAdapters ¶
func (c *HypervClient) CreateOrUpdateVmNetworkAdapters(vmName string, networkAdapters []vmNetworkAdapter) (err error)
func (*HypervClient) CreateOrUpdateVmProcessor ¶
func (c *HypervClient) CreateOrUpdateVmProcessor( vmName string, compatibilityForMigrationEnabled bool, compatibilityForOlderOperatingSystemsEnabled bool, hwThreadCountPerCore int64, maximum int64, reserve int64, relativeWeight int32, maximumCountPerNumaNode int32, maximumCountPerNumaSocket int32, enableHostResourceProtection bool, exposeVirtualizationExtensions bool, ) (err error)
func (*HypervClient) CreateOrUpdateVmProcessors ¶
func (c *HypervClient) CreateOrUpdateVmProcessors(vmName string, vmProcessors []vmProcessor) (err error)
func (*HypervClient) CreateVMSwitch ¶
func (c *HypervClient) CreateVMSwitch( name string, notes string, allowManagementOS bool, embeddedTeamingEnabled bool, iovEnabled bool, packetDirectEnabled bool, bandwidthReservationMode VMSwitchBandwidthMode, switchType VMSwitchType, netAdapterNames []string, defaultFlowMinimumBandwidthAbsolute int64, defaultFlowMinimumBandwidthWeight int64, defaultQueueVmmqEnabled bool, defaultQueueVmmqQueuePairs int32, defaultQueueVrssEnabled bool, ) (err error)
func (*HypervClient) CreateVm ¶
func (c *HypervClient) CreateVm( name string, generation int, automaticCriticalErrorAction CriticalErrorAction, automaticCriticalErrorActionTimeout int32, automaticStartAction StartAction, automaticStartDelay int32, automaticStopAction StopAction, checkpointType CheckpointType, dynamicMemory bool, guestControlledCacheTypes bool, highMemoryMappedIoSpace int64, lockOnDisconnect OnOffState, lowMemoryMappedIoSpace int32, memoryMaximumBytes int64, memoryMinimumBytes int64, memoryStartupBytes int64, notes string, processorCount int64, smartPagingFilePath string, snapshotFileLocation string, staticMemory bool, ) (err error)
func (*HypervClient) CreateVmDvdDrive ¶
func (*HypervClient) CreateVmHardDiskDrive ¶
func (c *HypervClient) CreateVmHardDiskDrive( vmName string, controllerType ControllerType, controllerNumber int32, controllerLocation int32, path string, diskNumber uint32, resourcePoolName string, supportPersistentReservations bool, maximumIops uint64, minimumIops uint64, qosPolicyId string, overrideCacheAttributes CacheAttributes, ) (err error)
func (*HypervClient) CreateVmNetworkAdapter ¶
func (c *HypervClient) CreateVmNetworkAdapter( vmName string, name string, switchName string, managementOs bool, isLegacy bool, dynamicMacAddress bool, staticMacAddress string, macAddressSpoofing OnOffState, dhcpGuard OnOffState, routerGuard OnOffState, portMirroring PortMirroring, ieeePriorityTag OnOffState, vmqWeight int, iovQueuePairsRequested int, iovInterruptModeration IovInterruptModerationValue, iovWeight int, ipsecOffloadMaximumSecurityAssociation int, maximumBandwidth int, minimumBandwidthAbsolute int, minimumBandwidthWeight int, mandatoryFeatureId []string, resourcePoolName string, testReplicaPoolName string, testReplicaSwitchName string, virtualSubnetId int, allowTeaming OnOffState, notMonitoredInCluster bool, stormLimit int, dynamicIpAddressLimit int, deviceNaming OnOffState, fixSpeed10G OnOffState, packetDirectNumProcs int, packetDirectModerationCount int, packetDirectModerationInterval int, vrssEnabled bool, vmmqEnabled bool, vmmqQueuePairs int, vlanAccess bool, vlanId int, ) (err error)
func (*HypervClient) DeleteVMSwitch ¶
func (c *HypervClient) DeleteVMSwitch(name string) (err error)
func (*HypervClient) DeleteVhd ¶
func (c *HypervClient) DeleteVhd(path string) (err error)
func (*HypervClient) DeleteVm ¶
func (c *HypervClient) DeleteVm(name string) (err error)
func (*HypervClient) DeleteVmDvdDrive ¶
func (c *HypervClient) DeleteVmDvdDrive(vmName string, controllerNumber int, controllerLocation int) (err error)
func (*HypervClient) DeleteVmHardDiskDrive ¶
func (c *HypervClient) DeleteVmHardDiskDrive(vmname string, controllerNumber int32, controllerLocation int32) (err error)
func (*HypervClient) DeleteVmNetworkAdapter ¶
func (c *HypervClient) DeleteVmNetworkAdapter(vmName string, index int) (err error)
func (*HypervClient) DisableVmIntegrationService ¶
func (c *HypervClient) DisableVmIntegrationService(vmName string, name string) (err error)
func (*HypervClient) EnableVmIntegrationService ¶
func (c *HypervClient) EnableVmIntegrationService(vmName string, name string) (err error)
func (*HypervClient) GetNoVmFirmwares ¶
func (c *HypervClient) GetNoVmFirmwares() (result []vmFirmware)
func (*HypervClient) GetVMSwitch ¶
func (c *HypervClient) GetVMSwitch(name string) (result vmSwitch, err error)
func (*HypervClient) GetVhd ¶
func (c *HypervClient) GetVhd(path string) (result vhd, err error)
func (*HypervClient) GetVm ¶
func (c *HypervClient) GetVm(name string) (result vm, err error)
func (*HypervClient) GetVmDvdDrives ¶
func (c *HypervClient) GetVmDvdDrives(vmName string) (result []vmDvdDrive, err error)
func (*HypervClient) GetVmFirmware ¶
func (c *HypervClient) GetVmFirmware(vmName string) (result vmFirmware, err error)
func (*HypervClient) GetVmFirmwares ¶
func (c *HypervClient) GetVmFirmwares(vmName string) (result []vmFirmware, err error)
func (*HypervClient) GetVmHardDiskDrives ¶
func (c *HypervClient) GetVmHardDiskDrives(vmName string) (result []vmHardDiskDrive, err error)
func (*HypervClient) GetVmIntegrationServices ¶
func (c *HypervClient) GetVmIntegrationServices(vmName string) (result []vmIntegrationService, err error)
func (*HypervClient) GetVmNetworkAdapters ¶
func (c *HypervClient) GetVmNetworkAdapters(vmName string, networkAdaptersWaitForIps []vmNetworkAdapterWaitForIp) (result []vmNetworkAdapter, err error)
func (*HypervClient) GetVmProcessor ¶
func (c *HypervClient) GetVmProcessor(vmName string) (result vmProcessor, err error)
func (*HypervClient) GetVmProcessors ¶
func (c *HypervClient) GetVmProcessors(vmName string) (result []vmProcessor, err error)
func (*HypervClient) GetVmState ¶
func (c *HypervClient) GetVmState(vmName string) (result vmState, err error)
func (*HypervClient) ResizeVhd ¶
func (c *HypervClient) ResizeVhd(path string, size uint64) (err error)
func (*HypervClient) UpdateVMSwitch ¶
func (c *HypervClient) UpdateVMSwitch( name string, notes string, allowManagementOS bool, switchType VMSwitchType, netAdapterNames []string, defaultFlowMinimumBandwidthAbsolute int64, defaultFlowMinimumBandwidthWeight int64, defaultQueueVmmqEnabled bool, defaultQueueVmmqQueuePairs int32, defaultQueueVrssEnabled bool, ) (err error)
func (*HypervClient) UpdateVm ¶
func (c *HypervClient) UpdateVm( name string, automaticCriticalErrorAction CriticalErrorAction, automaticCriticalErrorActionTimeout int32, automaticStartAction StartAction, automaticStartDelay int32, automaticStopAction StopAction, checkpointType CheckpointType, dynamicMemory bool, guestControlledCacheTypes bool, highMemoryMappedIoSpace int64, lockOnDisconnect OnOffState, lowMemoryMappedIoSpace int32, memoryMaximumBytes int64, memoryMinimumBytes int64, memoryStartupBytes int64, notes string, processorCount int64, smartPagingFilePath string, snapshotFileLocation string, staticMemory bool, ) (err error)
func (*HypervClient) UpdateVmDvdDrive ¶
func (*HypervClient) UpdateVmHardDiskDrive ¶
func (c *HypervClient) UpdateVmHardDiskDrive( vmName string, controllerNumber int32, controllerLocation int32, controllerType ControllerType, toControllerNumber int32, toControllerLocation int32, path string, diskNumber uint32, resourcePoolName string, supportPersistentReservations bool, maximumIops uint64, minimumIops uint64, qosPolicyId string, overrideCacheAttributes CacheAttributes, ) (err error)
func (*HypervClient) UpdateVmNetworkAdapter ¶
func (c *HypervClient) UpdateVmNetworkAdapter( vmName string, index int, name string, switchName string, managementOs bool, isLegacy bool, dynamicMacAddress bool, staticMacAddress string, macAddressSpoofing OnOffState, dhcpGuard OnOffState, routerGuard OnOffState, portMirroring PortMirroring, ieeePriorityTag OnOffState, vmqWeight int, iovQueuePairsRequested int, iovInterruptModeration IovInterruptModerationValue, iovWeight int, ipsecOffloadMaximumSecurityAssociation int, maximumBandwidth int, minimumBandwidthAbsolute int, minimumBandwidthWeight int, mandatoryFeatureId []string, resourcePoolName string, testReplicaPoolName string, testReplicaSwitchName string, virtualSubnetId int, allowTeaming OnOffState, notMonitoredInCluster bool, stormLimit int, dynamicIpAddressLimit int, deviceNaming OnOffState, fixSpeed10G OnOffState, packetDirectNumProcs int, packetDirectModerationCount int, packetDirectModerationInterval int, vrssEnabled bool, vmmqEnabled bool, vmmqQueuePairs int, vlanAccess bool, vlanId int, ) (err error)
func (*HypervClient) UpdateVmState ¶
func (*HypervClient) WaitForVmNetworkAdaptersIps ¶
func (c *HypervClient) WaitForVmNetworkAdaptersIps( vmName string, timeout uint32, pollPeriod uint32, vmNetworkAdaptersWaitForIps []vmNetworkAdapterWaitForIp, ) (err error)
type IPProtocolPreference ¶
type IPProtocolPreference int
const ( IPProtocolPreference_IPv4 IPProtocolPreference = 0 IPProtocolPreference_IPv6 IPProtocolPreference = 1 )
func ToIPProtocolPreference ¶
func ToIPProtocolPreference(x string) IPProtocolPreference
func (*IPProtocolPreference) MarshalJSON ¶
func (d *IPProtocolPreference) MarshalJSON() ([]byte, error)
func (IPProtocolPreference) String ¶
func (x IPProtocolPreference) String() string
func (*IPProtocolPreference) UnmarshalJSON ¶
func (d *IPProtocolPreference) UnmarshalJSON(b []byte) error
type IovInterruptModerationValue ¶
type IovInterruptModerationValue int
const ( IovInterruptModerationValue_Default IovInterruptModerationValue = 0 IovInterruptModerationValue_Adaptive IovInterruptModerationValue = 1 IovInterruptModerationValue_Off IovInterruptModerationValue = 2 IovInterruptModerationValue_Low IovInterruptModerationValue = 100 IovInterruptModerationValue_Medium IovInterruptModerationValue = 200 IovInterruptModerationValue_High IovInterruptModerationValue = 300 )
func ToIovInterruptModerationValue ¶
func ToIovInterruptModerationValue(x string) IovInterruptModerationValue
func (*IovInterruptModerationValue) MarshalJSON ¶
func (d *IovInterruptModerationValue) MarshalJSON() ([]byte, error)
func (IovInterruptModerationValue) String ¶
func (x IovInterruptModerationValue) String() string
func (*IovInterruptModerationValue) UnmarshalJSON ¶
func (d *IovInterruptModerationValue) UnmarshalJSON(b []byte) error
type OnOffState ¶
type OnOffState int
const ( OnOffState_On OnOffState = 0 OnOffState_Off OnOffState = 1 )
func ToOnOffState ¶
func ToOnOffState(x string) OnOffState
func (*OnOffState) MarshalJSON ¶
func (d *OnOffState) MarshalJSON() ([]byte, error)
func (OnOffState) String ¶
func (x OnOffState) String() string
func (*OnOffState) UnmarshalJSON ¶
func (d *OnOffState) UnmarshalJSON(b []byte) error
type PortMirroring ¶
type PortMirroring int
const ( PortMirroring_None PortMirroring = 0 PortMirroring_Destination PortMirroring = 1 PortMirroring_Source PortMirroring = 2 )
func ToPortMirroring ¶
func ToPortMirroring(x string) PortMirroring
func (*PortMirroring) MarshalJSON ¶
func (d *PortMirroring) MarshalJSON() ([]byte, error)
func (PortMirroring) String ¶
func (x PortMirroring) String() string
func (*PortMirroring) UnmarshalJSON ¶
func (d *PortMirroring) UnmarshalJSON(b []byte) error
type StartAction ¶
type StartAction int
const ( StartAction_Nothing StartAction = 2 StartAction_StartIfRunning StartAction = 3 StartAction_Start StartAction = 4 )
func ToStartAction ¶
func ToStartAction(x string) StartAction
func (*StartAction) MarshalJSON ¶
func (d *StartAction) MarshalJSON() ([]byte, error)
func (StartAction) String ¶
func (x StartAction) String() string
func (*StartAction) UnmarshalJSON ¶
func (d *StartAction) UnmarshalJSON(b []byte) error
type StopAction ¶
type StopAction int
const ( StopAction_TurnOff StopAction = 2 StopAction_Save StopAction = 3 StopAction_ShutDown StopAction = 4 )
func ToStopAction ¶
func ToStopAction(x string) StopAction
func (*StopAction) MarshalJSON ¶
func (d *StopAction) MarshalJSON() ([]byte, error)
func (StopAction) String ¶
func (x StopAction) String() string
func (*StopAction) UnmarshalJSON ¶
func (d *StopAction) UnmarshalJSON(b []byte) error
type VMSwitchBandwidthMode ¶
type VMSwitchBandwidthMode int
const ( VMSwitchBandwidthMode_Default VMSwitchBandwidthMode = 0 VMSwitchBandwidthMode_Weight VMSwitchBandwidthMode = 1 VMSwitchBandwidthMode_Absolute VMSwitchBandwidthMode = 2 VMSwitchBandwidthMode_None VMSwitchBandwidthMode = 3 )
func ToVMSwitchBandwidthMode ¶
func ToVMSwitchBandwidthMode(x string) VMSwitchBandwidthMode
func (*VMSwitchBandwidthMode) MarshalJSON ¶
func (d *VMSwitchBandwidthMode) MarshalJSON() ([]byte, error)
func (VMSwitchBandwidthMode) String ¶
func (x VMSwitchBandwidthMode) String() string
func (*VMSwitchBandwidthMode) UnmarshalJSON ¶
func (d *VMSwitchBandwidthMode) UnmarshalJSON(b []byte) error
type VMSwitchType ¶
type VMSwitchType int
const ( VMSwitchType_Private VMSwitchType = 0 VMSwitchType_Internal VMSwitchType = 1 VMSwitchType_External VMSwitchType = 2 )
func ToVMSwitchType ¶
func ToVMSwitchType(x string) VMSwitchType
func (*VMSwitchType) MarshalJSON ¶
func (d *VMSwitchType) MarshalJSON() ([]byte, error)
func (VMSwitchType) String ¶
func (x VMSwitchType) String() string
func (*VMSwitchType) UnmarshalJSON ¶
func (d *VMSwitchType) UnmarshalJSON(b []byte) error
type VhdFormat ¶
type VhdFormat int
func ToVhdFormat ¶
func (*VhdFormat) MarshalJSON ¶
func (*VhdFormat) UnmarshalJSON ¶
type VmState ¶
type VmState int
const ( VmState_Other VmState = 1 VmState_Running VmState = 2 VmState_Off VmState = 3 VmState_Stopping VmState = 4 VmState_Saved VmState = 6 VmState_Paused VmState = 9 VmState_Starting VmState = 10 VmState_Reset VmState = 11 VmState_Saving VmState = 32773 VmState_Pausing VmState = 32776 VmState_Resuming VmState = 32777 VmState_FastSaved VmState = 32779 VmState_FastSaving VmState = 32780 VmState_ForceShutdown VmState = 32781 VmState_ForceReboot VmState = 32782 VmState_RunningCritical VmState = 32783 VmState_OffCritical VmState = 32784 VmState_StoppingCritical VmState = 32785 VmState_SavedCritical VmState = 32786 VmState_PausedCritical VmState = 32787 VmState_StartingCritical VmState = 32788 VmState_ResetCritical VmState = 32789 VmState_SavingCritical VmState = 32790 VmState_PausingCritical VmState = 32791 VmState_ResumingCritical VmState = 32792 VmState_FastSavedCritical VmState = 32793 VmState_FastSavingCritical VmState = 32794 )
func (*VmState) MarshalJSON ¶
func (*VmState) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.