Documentation
¶
Index ¶
- func Add(mgr manager.Manager) error
- type ReconcileDatabase
- func (r *ReconcileDatabase) Backup(instance *dbv1alpha1.Database) chan error
- func (r *ReconcileDatabase) BackupThenDrop(instance *dbv1alpha1.Database) chan error
- func (r *ReconcileDatabase) Create(instance *dbv1alpha1.Database) chan error
- func (r *ReconcileDatabase) Drop(instance *dbv1alpha1.Database) chan error
- func (r *ReconcileDatabase) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileDatabase) UpdatePhase(instance *dbv1alpha1.Database, phase dbv1alpha1.DatabasePhase) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileDatabase ¶
type ReconcileDatabase struct {
// contains filtered or unexported fields
}
ReconcileDatabase reconciles a Database object
func (*ReconcileDatabase) Backup ¶
func (r *ReconcileDatabase) Backup(instance *dbv1alpha1.Database) chan error
Backup creates a backup resource and returns a channel that will send nil/an error when the backup is completed
func (*ReconcileDatabase) BackupThenDrop ¶
func (r *ReconcileDatabase) BackupThenDrop(instance *dbv1alpha1.Database) chan error
func (*ReconcileDatabase) Create ¶
func (r *ReconcileDatabase) Create(instance *dbv1alpha1.Database) chan error
func (*ReconcileDatabase) Drop ¶
func (r *ReconcileDatabase) Drop(instance *dbv1alpha1.Database) chan error
func (*ReconcileDatabase) Reconcile ¶
Reconcile reads that state of the cluster for a Database object and makes changes based on the state read and what is in the Database.Spec Note: The Controller will requeue the Request to be processed again if the returned error is non-nil or Result.Requeue is true, otherwise upon completion it will remove the work from the queue.
func (*ReconcileDatabase) UpdatePhase ¶
func (r *ReconcileDatabase) UpdatePhase(instance *dbv1alpha1.Database, phase dbv1alpha1.DatabasePhase) error
UpdatePhase updates the phase of the database to the one requested
Click to show internal directories.
Click to hide internal directories.