# Functions
GetLocalDBConfigNames returns the names of the local configuration for each database server in the cluster as stored in the <clusterName>-pgha-config configMap per naming conventions.
NewDCS creates a new DCS config struct using the configMap provided.
NewLocalDB creates a new LocalDB, which includes a configMap that contains the local configuration settings for the database servers within a specific PG cluster.
PatchConfigMapData replaces the configuration stored the configuration specified with the provided content.
# Constants
PGHADCSConfigName represents the name of the DCS configuration stored in the "<clustername>-pgha-config" configMap, which is "<clustername>-dcs-config".
# Variables
ErrMissingClusterConfig is the error thrown when configuration is missing from a configMap.
PGHALocalConfigName represents the name of the local configuration stored for each database server in the "<clustername>-pgha-config" configMap, which is "<clusterName>-local-config".
# Structs
Callbacks defines the various Patroni callbacks.
CreateReplicaMethod represents a Patroni replica creation method.
DCS configures the DCS configuration settings for a specific PG cluster.
DCSConfig represents the cluster-wide configuration that is stored in the Distributed Configuration Store (DCS).
LocalDB configures the local configuration settings for a specific database server within a PG cluster.
LocalDBConfig represents the local configuration for a specific PostgreSQL database server within a PostgreSQL cluster.
PostgresDCS represents the PostgreSQL settings that can be applied cluster-wide to a PostgreSQL cluster via the DCS.
PostgresLocalDB represents the PostgreSQL settings that can be applied to an individual PostgreSQL server within a PostgreSQL cluster.
SlotDCS represents slot settings that can be applied cluster-wide via the DCS.
StandbyDCS represents standby cluster settings that can be applied cluster-wide via the DCS.
# Interfaces
Syncer defines a resource that is able to sync its configuration stored configuration with a service, application, etc.