Documentation ¶
Index ¶
- Variables
- func Handle(err error, _ context.Context) (ctrl.Result, error)
- func IsStopAndForget(err error) bool
- func IsStopWithRequeue(err error) bool
- func IsStopWithRequeueDelay(err error) bool
- func IsTerminal(err error) bool
- func LoggerFromCtx(ctx context.Context) logr.Logger
- func LoggerIntoCtx(ctx context.Context, logger logr.Logger) context.Context
- func StopAndForgetAction(_ context.Context, _ State) (error, context.Context)
- func StopWithRequeueAction(_ context.Context, _ State) (error, context.Context)
- func StopWithRequeueDelay(d time.Duration) error
- type Action
- func BuildBranchingAction(name string, predicate Predicate, trueAction Action, falseAction Action) Action
- func BuildSwitchAction(name string, defaultAction Action, cases ...Case) Action
- func ComposeActions(name string, actions ...Action) Action
- func StopWithRequeueDelayAction(d time.Duration) Action
- type Case
- type CaseStruct
- type Predicate
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StopAndForget error StopWithRequeue error )
Functions ¶
func IsStopAndForget ¶
func IsStopWithRequeue ¶
func IsStopWithRequeueDelay ¶
func IsTerminal ¶
func StopAndForgetAction ¶
func StopWithRequeueAction ¶
func StopWithRequeueDelay ¶
Types ¶
type Action ¶
func BuildBranchingAction ¶
func BuildSwitchAction ¶
func ComposeActions ¶
type Case ¶
type CaseStruct ¶
type State ¶
type State interface { Client() client.Client EventRecorder() record.EventRecorder Name() types.NamespacedName Obj() client.Object LoadObj(ctx context.Context, opts ...client.GetOption) error UpdateObj(ctx context.Context, opts ...client.UpdateOption) error UpdateObjStatus(ctx context.Context, opts ...client.SubResourceUpdateOption) error }
Click to show internal directories.
Click to hide internal directories.