Documentation ¶
Overview ¶
Package govmomi contains tools for interacting with vSphere APIs.
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.Context, vmCtx *capvcontext.VMContext) (reconcile.Result, infrav1.VirtualMachine, error)
DestroyVM powers off and destroys a virtual machine.
func (*VMService) ReconcileVM ¶
func (vms *VMService) ReconcileVM(ctx context.Context, vmCtx *capvcontext.VMContext) (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
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package cluster contains tools for managing ComputeClusters.
|
Package cluster contains tools for managing ComputeClusters. |
Package clustermodules contains tools for handling Cluster Modules.
|
Package clustermodules contains tools for handling Cluster Modules. |
Package extra contains config with a VM's guestInfo RPC interface.
|
Package extra contains config with a VM's guestInfo RPC interface. |
Package find is used to find VCenter objects based for failure domain handling.
|
Package find is used to find VCenter objects based for failure domain handling. |
Package ipam contains tools for to deal with CAPI IPAddress and related types.
|
Package ipam contains tools for to deal with CAPI IPAddress and related types. |
Package metadata contains tools to manage metadata tags on VCenter objects.
|
Package metadata contains tools to manage metadata tags on VCenter objects. |
Package net contains tools for handling VM networks.
|
Package net contains tools for handling VM networks. |
Package pci contains tools for PCI devices.
|
Package pci contains tools for PCI devices. |
Package template has tools for finding VM templates.
|
Package template has tools for finding VM templates. |
Package vcenter has tools for cloning virtual machines in vcenter.
|
Package vcenter has tools for cloning virtual machines in vcenter. |
Click to show internal directories.
Click to hide internal directories.