Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(ctx context.Context, info *ReconcileInfo, instance interface{}) (StateType, ctrl.Result, error)
Handler is a state handle function. If an error isn't nil or ctrl.Result.Requeue is true the state machine will requeue the Request again
type Instance ¶
type Instance interface { runtime.Object GetState() StateType SetState(state StateType) SetError(err error) }
Instance is a object for the CR need be reconcile NOTE: Instance must be a pointer
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine is a state machine
type ReconcileInfo ¶
ReconcileInfo is the information need by reconcile
Click to show internal directories.
Click to hide internal directories.