machine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func (*Actuator) Create

func (a *Actuator) Create(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Create creates a machine and is invoked by the Machine Controller

func (*Actuator) Delete

func (a *Actuator) Delete(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Delete deletes a machine and is invoked by the Machine Controller

func (*Actuator) Exists

func (a *Actuator) Exists(cluster *clusterv1.Cluster, machine *clusterv1.Machine) (bool, error)

Exists test for the existance of a machine and is invoked by the Machine Controller

func (*Actuator) Update

func (a *Actuator) Update(cluster *clusterv1.Cluster, machine *clusterv1.Machine) error

Update updates a machine and is invoked by the Machine Controller

type ActuatorParams

type ActuatorParams struct {
	ClusterClient clusterclient.Interface
	KubeClient    kubernetes.Interface
}

ActuatorParams holds parameter information for Actuator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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