infrastructure

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type VMService

type VMService struct{}

VMService provdes API to interact with the VMs using golang ics sdk

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