package
4.7.10+incompatible
Repository: https://github.com/crunchydata/postgres-operator.git
Documentation: pkg.go.dev

# Functions

DeleteUser deletes the specified user, their servergroups, and servers.
GetPgAdminQueryRunner takes cluster information, identifies whether it has a pgAdmin deployment and provides a query runner for executing queries against the pgAdmin database The pointer will be nil if there is no pgAdmin deployed for the cluster.
GetUsernames provides a list of the provisioned pgadmin login users.
HashPassword emulates the PBKDF2 password hashing mechanism using a salt randomly generated and stored in the pgadmin database It returns a string of the Modular Crypt Format result of the hash, suitable for insertion/replacement of pgadmin login password fields.
NewQueryRunner creates a query runner instance with the configuration necessary to exec into the named pod in the provided namespace.
ServerEntryFromPgService populates the ServerEntry struct based on details of the kubernetes service, it is up to the caller to provide the assumed PgCluster service.
Configures a PG connection for the given username in the pgadmin database.
Sets the login password for the given username in the pgadmin database Adds the user to the pgadmin database if it does not exist.

# Constants

JitterCenter represents a jitter range of (0.5 Duration, 1.5 Duration) That is, full, but centered on the value.
JitterFull represents a jitter range of (0, Duration).
JitterNone performs no Jitter, with multiple clients, can be bursty.
JitterSmall represents a jitter range of 0.75 Duration, 1.25 Duration).

# Structs

ExponentialBackoffPolicy provides an exponential backoff based on: Base * (Ratio ^ Iteration) For example a base of 10ms, ratio of 2, and no jitter would produce: 10ms, 20ms, 40ms, 80ms, 160ms, 320ms, 640ms, 1.28s, 2.56s..
ServerEntry models parts of the pgadmin server table.
SpecificBackoffPolicy allows manually specifying retry times.

# Interfaces

Backoff interface provides increasing length delays for event spacing.

# Type aliases

Jitter is an enum representing a distinct jitter mode.