Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReconcileError ¶
type ReconcileError struct {
// contains filtered or unexported fields
}
ReconcileError represents an error that is not automatically recoverable errorType indicates what type of action is required to recover. It can take two values: 1. `Transient` - Can be recovered through manual intervention or by waiting, will be requeued after. 2. `Terminal` - Cannot be recovered, will not be requeued.
func WithTerminalError ¶
func WithTerminalError(err error) *ReconcileError
WithTerminalError wraps the error in a ReconcileError with errorType as `Terminal`.
func WithTransientError ¶
func WithTransientError(err error, requeueAfter time.Duration) *ReconcileError
WithTransientError wraps the error in a ReconcileError with errorType as `Transient`.
func (*ReconcileError) Error ¶
func (t *ReconcileError) Error() string
Error returns the error message for a ReconcileError.
func (*ReconcileError) IsTerminal ¶
func (t *ReconcileError) IsTerminal() bool
IsTerminal returns true if the ReconcileError is not recoverable.
func (*ReconcileError) IsTransient ¶
func (t *ReconcileError) IsTransient() bool
IsTransient returns true if the ReconcileError is recoverable.
func (*ReconcileError) RequeueAfter ¶
func (t *ReconcileError) RequeueAfter() time.Duration
RequeueAfter returns requestAfter value.
type ReconcileErrorType ¶
type ReconcileErrorType string
ReconcileErrorType represents the type of a ReconcileError.
const ( // TransientErrorType can be recovered, will be requeued after a configured time interval. TransientErrorType ReconcileErrorType = "Transient" // TerminalErrorType cannot be recovered, will not be requeued. TerminalErrorType ReconcileErrorType = "Terminal" )
type Reconciler ¶
type Reconciler interface {
Reconcile(ctx context.Context) error
Delete(ctx context.Context) error
}
Reconciler is a generic interface for a controller reconciler which has Reconcile and Delete methods.
type ServiceReconciler ¶
type ServiceReconciler interface {
Name() string
Reconciler
}
ServiceReconciler is a Scaleway service reconciler which can reconcile a Scaleway service.
Directories
¶
| Path | Synopsis |
|---|---|
|
mock_client
Package mock_client is a generated GoMock package.
|
Package mock_client is a generated GoMock package. |
|
mock_common
Package mock_common is a generated GoMock package.
|
Package mock_common is a generated GoMock package. |