Documentation ¶
Index ¶
- func AddFinalizer(obj client.Object, finalizer string) bool
- func HasFinalizer(o client.Object, finalizer string) bool
- func IsBeingDeleted(obj client.Object) bool
- func NewRequestId() string
- func NewRequestLog(log log.Logger, req ctrl.Request, reqID string) log.Logger
- func NoRequeue() (ctrl.Result, error)
- func RemoveFinalizer(obj client.Object, finalizer string) bool
- func Requeue(requeue bool) (ctrl.Result, error)
- func RequeueAfter(interval time.Duration) (ctrl.Result, error)
- func RequeueAfterError(interval time.Duration, err error) (ctrl.Result, error)
- func RequeueError(err error) (ctrl.Result, error)
- func RequeueImmediately() (ctrl.Result, error)
- type RequestContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFinalizer ¶
AddFinalizer adds the given finalizer to the given object.
func HasFinalizer ¶
HasFinalizer returns true if the given object has the given finalizer.
func IsBeingDeleted ¶
IsBeingDeleted returns whether this object has been requested to be deleted.
func NewRequestLog ¶
NewRequestLog returns a new log.Logger with reconcile.Request's metadata.
func RemoveFinalizer ¶
RemoveFinalizer removes the given finalizer from the given object.
func RequeueAfterError ¶
func RequeueImmediately ¶
Types ¶
type RequestContext ¶
type RequestContext interface { context.Context // GetRequestId returns the request ID. GetRequestId() string // GetRequest returns the underlying request. GetRequest() ctrl.Request // GetLogger returns an initialized logger. GetLogger() log.Logger // Cancel cancels the request context and tells the reconciler to abandon its work. Cancel() // Canceled returns true whether the request context has been canceled. Canceled() bool }
RequestContext is an interface and serves as a base for contexts.
func NewRequestContext ¶
func NewRequestContext(ctx context.Context, req ctrl.Request, reqID string, reqLogger log.Logger) RequestContext
NewRequestContext returns a new request context.
Click to show internal directories.
Click to hide internal directories.