resources

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 GetInstancePVCs

func GetInstancePVCs(
	ctx context.Context,
	clusterName string,
	instanceName string,
) ([]v1.PersistentVolumeClaim, error)

GetInstancePVCs gets all the PVC associated with a given instance

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