Documentation ¶
Overview ¶
Package resources contains reusable functions for the plugin commands
Index ¶
- func ExtractInstancesStatus(ctx context.Context, config *rest.Config, filteredPods []corev1.Pod) (postgres.PostgresqlStatusList, []error)
- func GetInstancePods(ctx context.Context, clusterName string) ([]corev1.Pod, corev1.Pod, error)
- func IsInstanceRunning(ctx context.Context, pod corev1.Pod) (bool, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.