Documentation ¶
Index ¶
- func EncodeLibvirtMachineProviderStatus(status *providerconfigv1.LibvirtMachineProviderStatus) (*runtime.RawExtension, error)
- func ProviderStatusFromMachine(machine *clusterv1.Machine) (*providerconfigv1.LibvirtMachineProviderStatus, error)
- func UpdateProviderStatus(status *providerconfigv1.LibvirtMachineProviderStatus, dom *libvirt.Domain) error
- type Actuator
- func (a *Actuator) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (a *Actuator) Delete(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- func (a *Actuator) Exists(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)
- func (a *Actuator) Update(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error
- type ActuatorParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeLibvirtMachineProviderStatus ¶
func EncodeLibvirtMachineProviderStatus(status *providerconfigv1.LibvirtMachineProviderStatus) (*runtime.RawExtension, error)
EncodeLibvirtMachineProviderStatus encodes a libvirt provider status as a runtime.RawExtension for inclusion in a MachineStatus object.
func ProviderStatusFromMachine ¶
func ProviderStatusFromMachine(machine *clusterv1.Machine) (*providerconfigv1.LibvirtMachineProviderStatus, error)
ProviderStatusFromMachine deserializes a libvirt provider status from a machine object.
func UpdateProviderStatus ¶
func UpdateProviderStatus(status *providerconfigv1.LibvirtMachineProviderStatus, dom *libvirt.Domain) error
UpdateProviderStatus updates the provider status in-place with info from the given libvirt domain.
Types ¶
type Actuator ¶
type Actuator struct {
// contains filtered or unexported fields
}
Actuator is responsible for performing machine reconciliation
func NewActuator ¶
func NewActuator(params ActuatorParams) (*Actuator, error)
NewActuator creates a new Actuator
type ActuatorParams ¶
type ActuatorParams struct { ClusterClient clusterclient.Interface KubeClient kubernetes.Interface }
ActuatorParams holds parameter information for Actuator
Click to show internal directories.
Click to hide internal directories.