Documentation ¶
Index ¶
- type VzVirtualMachine
- func (vm *VzVirtualMachine) ChangeState(newState define.StateChange) error
- func (vm *VzVirtualMachine) GetState() vz.VirtualMachineState
- func (vm *VzVirtualMachine) GetVMState(c *gin.Context)
- func (vm *VzVirtualMachine) HardStop() error
- func (vm *VzVirtualMachine) Inspect(c *gin.Context)
- func (vm *VzVirtualMachine) Pause() error
- func (vm *VzVirtualMachine) Resume() error
- func (vm *VzVirtualMachine) SetVMState(c *gin.Context)
- func (vm *VzVirtualMachine) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VzVirtualMachine ¶
type VzVirtualMachine struct { VzVM *vz.VirtualMachine // contains filtered or unexported fields }
func NewVzVirtualMachine ¶
func NewVzVirtualMachine(vm *vz.VirtualMachine, config *vz.VirtualMachineConfiguration) *VzVirtualMachine
func (*VzVirtualMachine) ChangeState ¶
func (vm *VzVirtualMachine) ChangeState(newState define.StateChange) error
ChangeState execute a state change (i.e. running to stopped)
func (*VzVirtualMachine) GetState ¶
func (vm *VzVirtualMachine) GetState() vz.VirtualMachineState
GetState returns state of the VM
func (*VzVirtualMachine) GetVMState ¶
func (vm *VzVirtualMachine) GetVMState(c *gin.Context)
getVMState retrieves the current vm state
func (*VzVirtualMachine) HardStop ¶
func (vm *VzVirtualMachine) HardStop() error
func (*VzVirtualMachine) Inspect ¶
func (vm *VzVirtualMachine) Inspect(c *gin.Context)
inspect returns information about the virtual machine like hw resources and devices
func (*VzVirtualMachine) Pause ¶
func (vm *VzVirtualMachine) Pause() error
func (*VzVirtualMachine) Resume ¶
func (vm *VzVirtualMachine) Resume() error
func (*VzVirtualMachine) SetVMState ¶
func (vm *VzVirtualMachine) SetVMState(c *gin.Context)
setVMState requests a state change on a virtual machine. At this time only the following states are valid: Pause - pause a running machine Resume - resume a paused machine Stop - stops a running machine HardStop - forceably stops a running machine
func (*VzVirtualMachine) Stop ¶
func (vm *VzVirtualMachine) Stop() error
Click to show internal directories.
Click to hide internal directories.