resources

package
v1.23.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package resources contains reusable functions for the plugin commands

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractInstancesStatus

func ExtractInstancesStatus(
	ctx context.Context,
	config *rest.Config,
	filteredPods []corev1.Pod,
) (postgres.PostgresqlStatusList, []error)

ExtractInstancesStatus extracts the instance status from the given pod list

func GetInstancePods

func GetInstancePods(ctx context.Context, clusterName string) ([]corev1.Pod, corev1.Pod, error)

GetInstancePods gets all the pods belonging to a given cluster returns an array with all the instances, the primary instance and any error encountered.

func IsInstanceRunning added in v1.18.0

func IsInstanceRunning(
	ctx context.Context,
	pod corev1.Pod,
) (bool, error)

IsInstanceRunning returns a boolean indicating if the given instance is running and any error encountered

Types

This section is empty.

Jump to

Keyboard shortcuts

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