twophase

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InnerSchedulerObject

type InnerSchedulerObject interface {
	reconciler.InnerObject
	GetDuration() (*time.Duration, error)

	GetNextStart() time.Time
	SetNextStart(time.Time)

	GetNextRecover() time.Time
	SetNextRecover(time.Time)

	GetScheduler() *v1alpha1.SchedulerSpec
}

InnerSchedulerObject is the Object for the twophase reconcile

type Reconciler

type Reconciler struct {
	reconciler.InnerReconciler
	client.Client
	Log logr.Logger
}

Reconciler for the twophase reconciler

func NewReconciler

func NewReconciler(r reconciler.InnerReconciler, client client.Client, log logr.Logger) *Reconciler

NewReconciler would create reconciler for twophase controller

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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