package
2.4.1+incompatible
Repository: https://github.com/percona/percona-postgresql-operator.git
Documentation: pkg.go.dev

# Functions

AddConfigToInstancePod adds and mounts the pgBackRest configuration volumes for an instance of cluster to pod.
AddConfigToRepoPod adds and mounts the pgBackRest configuration volume for the dedicated repository host of cluster to pod.
AddConfigToRestorePod adds and mounts the pgBackRest configuration volume for the restore job of cluster to pod.
AddRepoVolumesToPod adds pgBackRest repository volumes to the provided Pod template spec, while also adding associated volume mounts to the containers specified.
AddServerToInstancePod adds the TLS server container and volume to pod for an instance of cluster.
AddServerToRepoPod adds the TLS server container and volume to pod for the dedicated repository host of cluster.
CalculateConfigHashes calculates hashes for any external pgBackRest repository configuration present in the PostgresCluster spec (e.g.
CreatePGBackRestConfigMapIntent creates a configmap struct with pgBackRest pgbackrest.conf settings in the data field.
DedicatedRepoHostEnabled determines whether not a pgBackRest dedicated repository host is enabled according to the provided PostgresCluster.
InstanceCertificates populates the shared Secret with certificates needed to run pgBackRest.
MakePGBackrestLogDir creates the pgBackRest default log path directory used when a dedicated repo host is configured.
Permissions returns the RBAC rules pgBackRest needs for a cluster.
PostgreSQL populates outParameters with any settings needed to run pgBackRest.
ReplicaCreateCommand returns the command that can initialize the PostgreSQL data directory on an instance from one of cluster's repositories.
RepoVolumeMount returns the name and mount path of the pgBackRest repo volume.
RestoreCommand returns the command for performing a pgBackRest restore.
RestoreConfig populates targetConfigMap and targetSecret with values needed to restore a cluster from repositories defined in sourceConfigMap and sourceSecret.
Secret populates the pgBackRest Secret.

# Constants

CMInstanceKey is the name of the pgBackRest configuration file for a PostgreSQL instance.
CMRepoKey is the name of the pgBackRest configuration file for a pgBackRest dedicated repository host.
ConfigHashKey is the name of the file storing the pgBackRest config hash.
DefaultStanzaName is the name of the default pgBackRest stanza.
IANAPortNumber is the port assigned to pgBackRest at the IANA.
IANAServiceName is the name of the pgBackRest protocol at the IANA.

# Type aliases

Executor calls "pgbackrest" commands.