Categorygithub.com/rokukoo/hypervctl
modulepackage
1.0.4
Repository: https://github.com/rokukoo/hypervctl.git
Documentation: pkg.go.dev

# README

hyperctl

A simple sdk for Microsoft Hyper-V virtual machine management which is implemented in Go and using wmi.

Installation

go get github.com/rokukoo/hyperctl

Features

NetworkAdapter

|

TyN~ۏ^
ListRhgQ~MhV'
Enable/T(uQ~MhVL'
Disabley(uQ~MhVL'
ConfigureMnQ~MhVL'
FindByName9hnc
TygQ~MhVL'

VirtualMachine

  • Create
  • Destroy
  • Delete
  • Start
  • Stop
    • ForceStop
    • Shutdown
  • Reboot
    • ForceReboot
  • Pause
  • Restore
  • Save
  • Resume
  • Snapshot
  • ModifyName
  • ModifySpecByName
  • ModifyInternalIPv4Address
  • GetKvpItem
  • SetKvpItem
  • ListKvpItems
  • GetById
  • List
  • FindByName
    • FirstByName

VirtualHardDisk

  • Create
  • DeleteByPath
  • Attach
  • Detach
  • Resize
  • GetByPath

VirtualSwitch

  • Create
    • External
    • Bridge
    • Internal
    • Private
  • Delete
  • ChangeType
  • EnableVLan/DisableVLan
  • SetVlanId
  • GetById
  • FindByName
  • List

VirtualNetworkAdapter

  • Create/Attach
  • Delete/Detach
  • Connect
  • Disconnect
  • SetMacAddress
  • SetBandwidth
  • EnableVLan/DisableVLan
    • SetVLanId
  • ModifyConfiguration
  • List
  • FindByName

Cluster

  • ListNodes

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
CreatePrivateVirtualSwitch creates a private virtual switch.
No description provided by the author
CreateVirtualMachine 创建虚拟机.
No description provided by the author
No description provided by the author
DeleteVirtualMachineByName 根据名称删除虚拟机.
DeleteVirtualSwitchByName removes a virtual switch by name.
DestroyVirtualMachineByName 根据名称删除虚拟机.
FindVirtualMachineByName 根据虚拟机名称获取虚拟机.
FindVirtualNetworkAdapterByName returns the virtual network adapter.
FirstVirtualMachineByName 根据虚拟机名称获取第一个虚拟机.
FirstVirtualNetworkAdapterByName returns the first virtual network adapter.
FirstVirtualSwitchByName returns the first virtual switch by name.
No description provided by the author
No description provided by the author
No description provided by the author
ListVirtualMachines 获取所有虚拟机.
ModifyVirtualMachineSpecByName 根据虚拟机名称修改虚拟机规格.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

ModifySpecOptions 修改虚拟机规格选项.
VirtualHardDisk https://learn.microsoft.com/zh-cn/windows/win32/hyperv_v2/msvm-virtualharddisksettingdata.
https://learn.microsoft.com/zh-cn/windows/win32/hyperv_v2/msvm-computersystem.
No description provided by the author
No description provided by the author
VirtualSwitch represents a Hyper-V virtual switch.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author