controllers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingDevice = errors.New("machine does not exist")
	ErrFacilityMatch = errors.New("instance facility does not match machine facility")
	ErrMetroMatch    = errors.New("instance metro does not match machine metro")
)

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
	WatchFilterValue string
	PacketClient     *packet.Client
}

PacketMachineReconciler reconciles a PacketMachine object

func (*PacketMachineReconciler) PacketClusterToPacketMachines added in v0.5.0

func (r *PacketMachineReconciler) PacketClusterToPacketMachines(ctx context.Context) handler.MapFunc

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, reterr 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