Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMService ¶
type VMService struct{}
VMService provdes API to interact with the VMs using govmomi
func (*VMService) DestroyVM ¶
func (vms *VMService) DestroyVM(ctx *context.MachineContext) (infrav1.VirtualMachine, error)
DestroyVM powers off and destroys a virtual machine.
func (*VMService) ReconcileVM ¶
func (vms *VMService) ReconcileVM(ctx *context.MachineContext) (vm infrav1.VirtualMachine, _ error)
ReconcileVM makes sure that the VM is in the desired state by:
- Creating the VM if it does not exist, then...
- Updating the VM with the bootstrap data, such as the cloud-init meta and user data, before...
- Powering on the VM, and finally...
- Returning the real-time state of the VM to the caller
Click to show internal directories.
Click to hide internal directories.