backupcontroller

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupReconciler

type BackupReconciler struct {
	client.Client
	Log                 logr.Logger
	Scheme              *runtime.Scheme
	Recorder            record.EventRecorder
	InstanceLocks       *sync.Map
	OracleBackupFactory oracleBackupFactory
	BackupCtrl          backupControl

	DatabaseClientFactory controllers.DatabaseClientFactory
}

BackupReconciler reconciles a Backup object.

func (*BackupReconciler) Reconcile

func (r *BackupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, recErr error)

func (*BackupReconciler) SetupWithManager

func (r *BackupReconciler) SetupWithManager(mgr ctrl.Manager) error

type RealBackupControl

type RealBackupControl struct {
	Client client.Client
}

func (*RealBackupControl) GetBackup

func (c *RealBackupControl) GetBackup(name, namespace string) (*v1alpha1.Backup, error)

func (*RealBackupControl) GetInstance

func (c *RealBackupControl) GetInstance(name, namespace string) (*v1alpha1.Instance, error)

func (*RealBackupControl) LoadConfig

func (c *RealBackupControl) LoadConfig(namespace string) (*v1alpha1.Config, error)

func (*RealBackupControl) UpdateBackup

func (c *RealBackupControl) UpdateBackup(obj client.Object) error

func (*RealBackupControl) UpdateStatus

func (c *RealBackupControl) UpdateStatus(obj client.Object) error

func (*RealBackupControl) ValidateBackupSpec

func (c *RealBackupControl) ValidateBackupSpec(backup *v1alpha1.Backup) bool

type RealOracleBackupFactory

type RealOracleBackupFactory struct{}

Jump to

Keyboard shortcuts

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