machine

package
v0.0.1-0...-3bde969 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actuator

type Actuator struct {
	// contains filtered or unexported fields
}

Actuator performs machine reconciliation

func NewActuator

func NewActuator(params ActuatorParams) *Actuator

NewActuator returns an actuator.

func (*Actuator) Create

func (a *Actuator) Create(ctx context.Context, machine *machinev1.Machine) error

Create - creates a machine and is invoked by the machine controller.

func (*Actuator) Delete

func (a *Actuator) Delete(ctx context.Context, machine *machinev1.Machine) error

Delete - deletes a machine

func (*Actuator) Exists

func (a *Actuator) Exists(ctx context.Context, machine *machinev1.Machine) (bool, error)

Exists - checks if the machine exist. IMPORTANT: Exists() does not update Spec/Status obj, Only create() & update() stores the Spec and Status. Do not: scope.Close()

func (*Actuator) Update

func (a *Actuator) Update(ctx context.Context, machine *machinev1.Machine) error

Update - maintains synchronization between Machine resource and an existing machine instance

type ActuatorParams

type ActuatorParams struct {
	Client           controllerRuntimeClient.Client
	EventRecorder    rec.EventRecorder
	IbmClientBuilder ibmclient.IbmcloudClientBuilderFuncType
}

ActuatorParams holds parameter information for Actuator.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler are list of services required by machine actuator, easy to create a fake

func (Reconciler) Close

func (s Reconciler) Close() error

Close the MachineScope by persisting the machine spec, machine status after reconciling.

func (Reconciler) PatchMachine

func (s Reconciler) PatchMachine() error

Jump to

Keyboard shortcuts

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