database

package
v0.0.0-...-09bd25a Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Database Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

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

func (r *ReconcileDatabase) Reconcile(request reconcile.Request) (reconcile.Result, error)

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

Jump to

Keyboard shortcuts

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