reconciler

package
v0.0.0-...-4d19ac6 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DWReconciler

type DWReconciler interface {
	Reconcile(Request) (Result, error)
}

DWReconciler is the interface used by a Controller to do downward reconcile (tenant->super).

type EventType

type EventType string

EventType is an enum for type of Event

const (
	// AddEvent EventType for Add
	AddEvent EventType = "Add"
	// UpdateEvent EventType for Update
	UpdateEvent EventType = "Update"
	// DeleteEvent EventType for Delete
	DeleteEvent EventType = "Delete"
)

type PatrolReconciler

type PatrolReconciler interface {
	PatrollerDo()
}

PatrolReconciler is the interface used by a periodic checker to ensure the object consistency between tenant and super control plane.

type Request

type Request struct {
	ClusterName string
	types.NamespacedName
	UID string
}

Request contains the information needed by a DWReconciler to reconcile. It ONLY contains the meta that can uniquely identify an object without any state information which can lead to parallel reconcile.

func (Request) GroupName

func (r Request) GroupName() string

GroupName get ClusterName of request

type Result

type Result reconcile.Result

Result contains the result of a Reconciler invocation.

type UWReconciler

type UWReconciler interface {
	BackPopulate(string) error
}

UWReconciler is the interface used by a Controller to do upward reconcile (super->tenant).

Jump to

Keyboard shortcuts

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