services

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICSMachineService

type ICSMachineService interface {
	FetchICSMachine(client client.Client, name types.NamespacedName) (context.MachineContext, error)
	FetchICSCluster(client client.Client, cluster *clusterv1.Cluster, machineContext context.MachineContext) (context.MachineContext, error)
	ReconcileDelete(ctx context.MachineContext) error
	SyncFailureReason(ctx context.MachineContext) (bool, error)
	ReconcileNormal(ctx context.MachineContext) (bool, error)
	GetHostInfo(ctx context.MachineContext) (string, error)
}

ICSMachineService is used for ICS VM lifecycle and syncing with ICSMachine types.

type VimMachineService

type VimMachineService struct{}

func (*VimMachineService) FetchICSCluster

func (v *VimMachineService) FetchICSCluster(c client.Client, cluster *clusterv1.Cluster, machineContext context.MachineContext) (context.MachineContext, error)

func (*VimMachineService) FetchICSMachine

func (*VimMachineService) GetHostInfo

func (v *VimMachineService) GetHostInfo(c context.MachineContext) (string, error)

func (*VimMachineService) ReconcileDelete

func (v *VimMachineService) ReconcileDelete(c context.MachineContext) error

func (*VimMachineService) ReconcileNormal

func (v *VimMachineService) ReconcileNormal(c context.MachineContext) (bool, error)

func (*VimMachineService) SyncFailureReason

func (v *VimMachineService) SyncFailureReason(c context.MachineContext) (bool, error)

type VirtualMachineService

type VirtualMachineService interface {
	// ReconcileVM reconciles a VM with the intended state.
	ReconcileVM(ctx *context.VMContext) (infrav1.VirtualMachine, error)

	// DestroyVM powers off and removes a VM from the inventory.
	DestroyVM(ctx *context.VMContext) (infrav1.VirtualMachine, error)
}

VirtualMachineService is a service for creating/updating/deleting virtual machines on ICS.

Directories

Path Synopsis
net

Jump to

Keyboard shortcuts

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