scaleway

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTransientReconcileError added in v0.2.0

func IsTransientReconcileError(err error) bool

IsTransientReconcileError returns true if the provided error is a transient ReconcileError.

Types

type ReconcileError

type ReconcileError struct {
	// contains filtered or unexported fields
}

ReconcileError represents an error that may be fixed by waiting.

func WithTransientError

func WithTransientError(err error, requeueAfter time.Duration) *ReconcileError

WithTransientError wraps the error in a ReconcileError with requeueAfter duration.

func (*ReconcileError) Error

func (t *ReconcileError) Error() string

Error returns the error message for a ReconcileError.

func (*ReconcileError) RequeueAfter

func (t *ReconcileError) RequeueAfter() time.Duration

RequeueAfter returns requestAfter value.

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.
k8s
lb

Jump to

Keyboard shortcuts

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