proxy

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proxy provides functions to use the proxy subresource to call a pod

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetrieveMetricsFromInstance

func RetrieveMetricsFromInstance(
	ctx context.Context,
	kubeInterface kubernetes.Interface,
	pod corev1.Pod,
	tlsEnabled bool,
) (string, error)

RetrieveMetricsFromInstance aims to retrieve the metrics from a PostgreSQL instance pod using a GET request on the pod interface proxy

func RetrieveMetricsFromPgBouncer

func RetrieveMetricsFromPgBouncer(
	ctx context.Context,
	kubeInterface kubernetes.Interface,
	pod corev1.Pod,
) (string, error)

RetrieveMetricsFromPgBouncer aims to retrieve the metrics from a PgBouncer pod using a GET request on the pod interface proxy

func RetrievePgStatusFromInstance

func RetrievePgStatusFromInstance(
	ctx context.Context,
	kubeInterface kubernetes.Interface,
	pod corev1.Pod,
	tlsEnabled bool,
) (string, error)

RetrievePgStatusFromInstance aims to retrieve the pgStatus from a PostgreSQL instance pod using a GET request on the pod interface proxy

Types

This section is empty.

Jump to

Keyboard shortcuts

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