external

package
v1.22.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package external contains the functions needed to manage servers which are external to this PostgreSQL cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureConnectionToServer

func ConfigureConnectionToServer(
	ctx context.Context,
	client ctrl.Client,
	namespace string,
	server *apiv1.ExternalCluster,
) (string, error)

ConfigureConnectionToServer creates a connection string to the external server, using the configuration inside the cluster and dumping the secret when needed in a custom passfile. Returns a connection string or any error encountered

func GetServerConnectionString added in v1.21.4

func GetServerConnectionString(
	server *apiv1.ExternalCluster,
) string

GetServerConnectionString gets the connection string to be used to connect to this external server, without dumping the required cryptographic material

Types

This section is empty.

Directories

Path Synopsis
internal
pgpass
Package pgpass allows the user to generate a PostgreSQL .pgpass file See: https://www.postgresql.org/docs/current/libpq-pgpass.html
Package pgpass allows the user to generate a PostgreSQL .pgpass file See: https://www.postgresql.org/docs/current/libpq-pgpass.html

Jump to

Keyboard shortcuts

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