controllers

package
v0.0.0-...-6fa98e6 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: UPL-1.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCurrentPrimaryDatabaseNotFound error = errors.New("current primary database not found")
View Source
var ErrCurrentPrimaryDatabaseNotReady error = errors.New("current primary database not ready")
View Source
var ErrSidbWithMutipleReplicas error = errors.New("SingleInstanceDatabase with multiple replicas is not supported")

Functions

func GetDatabasesInDataGuardConfigurationWithRole

func GetDatabasesInDataGuardConfigurationWithRole(r *DataguardBrokerReconciler, broker *dbapi.DataguardBroker, ctx context.Context, req ctrl.Request) ([]string, error)

#############################################################################

Get databases in dataguard configuration along with their roles

#############################################################################

func GetFSFOTargets

func GetFSFOTargets(databaseSid string, databasesInDgConfig map[string]string) (string, error)

#####################################################################################################

Get the avail FSFO targets for a given singleinstancedatabase sid

#####################################################################################################

Types

type DataguardBrokerReconciler

type DataguardBrokerReconciler struct {
	client.Client
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Config   *rest.Config
	Recorder record.EventRecorder
}

DataguardBrokerReconciler reconciles a DataguardBroker object

func (*DataguardBrokerReconciler) Reconcile

func (*DataguardBrokerReconciler) SetupWithManager

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

#############################################################################################################################

Setup the controller with the Manager

#############################################################################################################################

Jump to

Keyboard shortcuts

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