Documentation
¶
Index ¶
- type ICSMachineService
- type VimMachineService
- func (v *VimMachineService) FetchICSCluster(c client.Client, cluster *clusterv1.Cluster, ...) (context.MachineContext, error)
- func (v *VimMachineService) FetchICSMachine(c client.Client, name types.NamespacedName) (context.MachineContext, error)
- func (v *VimMachineService) GetHostInfo(c context.MachineContext) (string, error)
- func (v *VimMachineService) ReconcileDelete(c context.MachineContext) error
- func (v *VimMachineService) ReconcileNormal(c context.MachineContext) (bool, error)
- func (v *VimMachineService) SyncFailureReason(c context.MachineContext) (bool, error)
- type VirtualMachineService
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 (v *VimMachineService) FetchICSMachine(c client.Client, name types.NamespacedName) (context.MachineContext, error)
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.
Click to show internal directories.
Click to hide internal directories.