govmomi

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPAddressClaimName added in v1.5.0

func IPAddressClaimName(vmName string, deviceIndex, poolIndex int) string

IPAddressClaimName returns a name given a VsphereVM name, deviceIndex, and poolIndex.

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.VMContext) (infrav1.VirtualMachine, error)

DestroyVM powers off and destroys a virtual machine.

func (*VMService) ReconcileVM

func (vms *VMService) ReconcileVM(ctx *context.VMContext) (vm infrav1.VirtualMachine, _ error)

ReconcileVM makes sure that the VM is in the desired state by:

  1. Creating the VM if it does not exist, then...
  2. Updating the VM with the bootstrap data, such as the cloud-init meta and user data, before...
  3. Powering on the VM, and finally...
  4. Returning the real-time state of the VM to the caller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL