Documentation ¶
Index ¶
- type CustomReconciler
- type CustomReconcilerConfig
- type CustomReconcilerFunc
- type Finalizer
- type FinalizerSet
- type ListReconciler
- type ListReconcilerConfig
- type OneReconciler
- type OneReconcilerConfig
- type ReconcileIfFunc
- type ReconcileListFunc
- type ReconcileOneFunc
- type Reconciler
- type ReconcilerConfig
- type ResourceReconciler
- type ResourceWatcher
- type ResourceWatcherConfig
- type StatusResolver
- type StatusUpdater
- type Watcher
- type WatcherConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomReconciler ¶
type CustomReconciler struct {
*CustomReconcilerConfig
}
func (*CustomReconciler) Finalizer ¶
func (r *CustomReconciler) Finalizer() Finalizer
func (*CustomReconciler) InjectDeps ¶
func (r *CustomReconciler) InjectDeps(ctn deps.Container)
type CustomReconcilerConfig ¶
type CustomReconcilerConfig struct { Name string Reconcile CustomReconcilerFunc Finalize Finalizer }
func (*CustomReconcilerConfig) Validate ¶
func (c *CustomReconcilerConfig) Validate() (bool, error)
type CustomReconcilerFunc ¶
type FinalizerSet ¶
type FinalizerSet struct {
// contains filtered or unexported fields
}
func CreateFinalizerSet ¶
func CreateFinalizerSet(ctn interface{}, finalizers ...Finalizer) *FinalizerSet
type ListReconciler ¶
type ListReconciler struct { *ListReconcilerConfig // contains filtered or unexported fields }
func (*ListReconciler) Finalizer ¶
func (r *ListReconciler) Finalizer() Finalizer
func (*ListReconciler) InjectDeps ¶
func (*ListReconciler) OwnedGVK ¶
func (r *ListReconciler) OwnedGVK() kotclient.GVK
type ListReconcilerConfig ¶
type ListReconcilerConfig struct { GVK kotclient.GVK If ReconcileIfFunc Reconcile ReconcileListFunc Finalize Finalizer }
func (*ListReconcilerConfig) Validate ¶
func (c *ListReconcilerConfig) Validate() (bool, error)
type OneReconciler ¶
type OneReconciler struct { *OneReconcilerConfig // contains filtered or unexported fields }
func (*OneReconciler) Finalizer ¶
func (r *OneReconciler) Finalizer() Finalizer
func (*OneReconciler) InjectDeps ¶
func (*OneReconciler) OwnedGVK ¶
func (r *OneReconciler) OwnedGVK() kotclient.GVK
type OneReconcilerConfig ¶
type OneReconcilerConfig struct { GVK kotclient.GVK If ReconcileIfFunc Reconcile ReconcileOneFunc Finalize Finalizer }
func (*OneReconcilerConfig) Validate ¶
func (c *OneReconcilerConfig) Validate() (bool, error)
type ReconcileListFunc ¶
type ReconcileListFunc func(ctx action.Context, childList runtimeclient.ObjectList) (action.Result, error)
type ReconcileOneFunc ¶
type Reconciler ¶
func CreateReconciler ¶
func CreateReconciler(config ReconcilerConfig) (Reconciler, error)
func MustCreateReconciler ¶
func MustCreateReconciler(config ReconcilerConfig) Reconciler
type ReconcilerConfig ¶
type ResourceReconciler ¶
type ResourceReconciler interface { Reconciler OwnedGVK() kotclient.GVK InjectDeps(ctn deps.Container) }
type ResourceWatcher ¶
type ResourceWatcher struct { *ResourceWatcherConfig // contains filtered or unexported fields }
func (*ResourceWatcher) Handler ¶
func (w *ResourceWatcher) Handler() runtimehandler.EventHandler
func (*ResourceWatcher) InjectDeps ¶
func (w *ResourceWatcher) InjectDeps(ctn deps.Container)
func (*ResourceWatcher) Predicate ¶
func (w *ResourceWatcher) Predicate() runtimepredicate.Predicate
func (*ResourceWatcher) Source ¶
func (w *ResourceWatcher) Source() runtimesource.Source
type ResourceWatcherConfig ¶
type ResourceWatcherConfig struct { Watches runtimeclient.Object When runtimepredicate.Predicate Enqueue func(deps deps.Container, obj runtimeclient.Object) ([]runtimereconcile.Request, error) }
func (*ResourceWatcherConfig) Validate ¶
func (c *ResourceWatcherConfig) Validate() (bool, error)
type StatusResolver ¶
type StatusUpdater ¶
type StatusUpdater struct {
// contains filtered or unexported fields
}
func CreateStatusUpdater ¶
func CreateStatusUpdater(ctn interface{}, resolvers ...StatusResolver) *StatusUpdater
type Watcher ¶
type Watcher interface { Source() runtimesource.Source Handler() runtimehandler.EventHandler Predicate() runtimepredicate.Predicate }
func CreateWatcher ¶
func CreateWatcher(config WatcherConfig) (Watcher, error)
func MustCreateWatcher ¶
func MustCreateWatcher(config WatcherConfig) Watcher
type WatcherConfig ¶
Click to show internal directories.
Click to hide internal directories.