resources

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 15 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 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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