management

package
v1.23.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package management contains all the features needed by the instance manager that runs in each Pod as PID 1

Index

Constants

This section is empty.

Variables

View Source
var (
	// Scheme used for the instance manager
	Scheme = runtime.NewScheme()
)

Functions

func NewControllerRuntimeClient

func NewControllerRuntimeClient() (client.WithWatch, error)

NewControllerRuntimeClient creates a new typed K8s client where the PostgreSQL CRD and some basic k8s resources have been already registered.

While using the typed client you may encounter an error like this: no matches for kind "X" in version "Y".

This means that the runtime.Object is missing and needs to registered in the client.

func NewEventRecorder

func NewEventRecorder() (record.EventRecorder, error)

NewEventRecorder creates a new event recorder

func WaitKubernetesAPIServer added in v1.17.3

func WaitKubernetesAPIServer(ctx context.Context, clusterObjectKey client.ObjectKey) error

WaitKubernetesAPIServer will wait for the kubernetes API server to by ready. Returns any error if it can't be reached.

Types

This section is empty.

Directories

Path Synopsis
Package barman contains the utilities to interact with barman-cloud.
Package barman contains the utilities to interact with barman-cloud.
archiver
Package archiver manages the WAL archiving process
Package archiver manages the WAL archiving process
capabilities
Package capabilities stores the definition of the type for Barman capabilities
Package capabilities stores the definition of the type for Barman capabilities
credentials
Package credentials is used to build environment for barman cloud commands
Package credentials is used to build environment for barman cloud commands
restorer
Package restorer manages the WAL restore process
Package restorer manages the WAL restore process
spool
Package spool implements a WAL pooler keeping track of which WALs we have archived
Package spool implements a WAL pooler keeping track of which WALs we have archived
Package catalog is the implementation of a backup catalog
Package catalog is the implementation of a backup catalog
Package execlog handles stdout and stderr pipes of started commands and logs them in JSON using the provided logger
Package execlog handles stdout and stderr pipes of started commands and logs them in JSON using the provided logger
Package external contains the functions needed to manage servers which are external to this PostgreSQL cluster
Package external contains the functions needed to manage servers which are external to this PostgreSQL cluster
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
Package log contains the logging subsystem of the instance manager
Package log contains the logging subsystem of the instance manager
Package logtest contains the testing utils for the logging subsystem of the instance manager
Package logtest contains the testing utils for the logging subsystem of the instance manager
pgbouncer
config
Package config contains the code related to the generation of the PgBouncer configuration
Package config contains the code related to the generation of the PgBouncer configuration
metricsserver
Package metricsserver contains the web server powering metrics
Package metricsserver contains the web server powering metrics
Package postgres contains the function about starting up, shutting down and managing a PostgreSQL instance.
Package postgres contains the function about starting up, shutting down and managing a PostgreSQL instance.
constants
Package constants provides the needed constants in the postgres package
Package constants provides the needed constants in the postgres package
logicalimport
Package logicalimport contains the logic needed to import a logical snapshot
Package logicalimport contains the logic needed to import a logical snapshot
logpipe
Package logpipe implements reading csv logs from PostgreSQL logging_collector (https://www.postgresql.org/docs/current/runtime-config-logging.html) and convert them to JSON.
Package logpipe implements reading csv logs from PostgreSQL logging_collector (https://www.postgresql.org/docs/current/runtime-config-logging.html) and convert them to JSON.
metrics
Package metrics enables to expose a set of metrics and collectors on a given postgres instance
Package metrics enables to expose a set of metrics and collectors on a given postgres instance
metrics/histogram
Package histogram contain histogram-metrics related functions
Package histogram contain histogram-metrics related functions
pool
Package pool contain an implementation of a connection pool to multiple database pointing to the same instance
Package pool contain an implementation of a connection pool to multiple database pointing to the same instance
utils
Package utils holds generic utils about postgres instances
Package utils holds generic utils about postgres instances
webserver
Package webserver contains the web server powering probes, backups and metrics
Package webserver contains the web server powering probes, backups and metrics
webserver/metricserver
Package metricserver contains the web server powering metrics
Package metricserver contains the web server powering metrics
Package upgrade manages the in-place upgrade of the instance manager
Package upgrade manages the in-place upgrade of the instance manager
Package url holds the constants for webserver routing
Package url holds the constants for webserver routing

Jump to

Keyboard shortcuts

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