Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrConflictDetected ¶
type ErrConflictDetected struct {
Ref backupv1alpha1.ResourceRef
Expected string // resourceVersion at prepare time
Actual string // resourceVersion at commit time (empty if resource was deleted)
}
ErrConflictDetected indicates a target resource was modified between prepare and commit.
func (*ErrConflictDetected) Error ¶
func (e *ErrConflictDetected) Error() string
type ErrRollbackConflict ¶
type ErrRollbackConflict struct {
Ref backupv1alpha1.ResourceRef
StoredRV string // resourceVersion when rollback state was captured
CurrentRV string // current resourceVersion (empty if deleted)
}
ErrRollbackConflict indicates a resource was modified externally since the rollback state was captured, making automatic rollback unsafe.
func (*ErrRollbackConflict) Error ¶
func (e *ErrRollbackConflict) Error() string
type ResourceOpError ¶
type ResourceOpError struct {
Op string // e.g. "parsing apiVersion", "fetching for update", "unmarshaling content"
Ref string // human-readable resource identifier
Err error
}
ResourceOpError wraps an error with resource operation context.
func (*ResourceOpError) Error ¶
func (e *ResourceOpError) Error() string
func (*ResourceOpError) Unwrap ¶
func (e *ResourceOpError) Unwrap() error
type RollbackDataError ¶
type RollbackDataError struct {
Key string
Err error // nil for missing data, non-nil for deserialization failure
}
RollbackDataError indicates missing or corrupt rollback state.
func (*RollbackDataError) Error ¶
func (e *RollbackDataError) Error() string
func (*RollbackDataError) Unwrap ¶
func (e *RollbackDataError) Unwrap() error
type TransactionReconciler ¶
type TransactionReconciler struct {
client.Client
Scheme *runtime.Scheme
BaseCfg *rest.Config
Mapper apimeta.RESTMapper
LockMgr lock.Manager
Recorder record.EventRecorder
// contains filtered or unexported fields
}
TransactionReconciler reconciles a Transaction object.
func (*TransactionReconciler) SetupWithManager ¶
func (r *TransactionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.