controllers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package controllers contains PacketCluster controller logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachineNoIP

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

MachineNoIP error representing that the requested device does not have an IP yet assigned.

func (*MachineNoIP) Error

func (e *MachineNoIP) Error() string

type MachineNotFound

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

MachineNotFound error representing that the requested device was not yet found.

func (*MachineNotFound) Error

func (e *MachineNotFound) Error() string

type PacketClusterReconciler

type PacketClusterReconciler struct {
	client.Client
	WatchFilterValue string
	PacketClient     *packet.Client
}

PacketClusterReconciler reconciles a PacketCluster object.

func (*PacketClusterReconciler) Reconcile

func (r *PacketClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)

func (*PacketClusterReconciler) SetupWithManager

func (r *PacketClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type PacketMachineReconciler

type PacketMachineReconciler struct {
	client.Client
	PacketClient *packet.Client

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

PacketMachineReconciler reconciles a PacketMachine object.

func (*PacketMachineReconciler) PacketClusterToPacketMachines added in v0.5.0

func (r *PacketMachineReconciler) PacketClusterToPacketMachines(ctx context.Context, o client.Object) []ctrl.Request

PacketClusterToPacketMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of PacketMachines.

func (*PacketMachineReconciler) Reconcile

func (r *PacketMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr error)

func (*PacketMachineReconciler) SetupWithManager

func (r *PacketMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Jump to

Keyboard shortcuts

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