resources

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 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 []v1.Pod,
	postgresContainerName string,
) postgres.PostgresqlStatusList

ExtractInstancesStatus extracts the instance status from the given pod list

func GetInstancePods

func GetInstancePods(ctx context.Context, clusterName string) ([]v1.Pod, v1.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 v1.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