rabbitmqclient

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRabbitmqClientForPod

func GetRabbitmqClientForPod(ctx context.Context, k8sClient client.Reader, rmq *rabbitmqv1beta1.RabbitmqCluster, podIP string) (*rabbithole.Client, error)

GetRabbitmqClientForPod creates a rabbithole client for a specific pod using its IP address. It fetches credentials from the default user secret and connects directly to the pod IP.

Types

type ClientInfo

type ClientInfo struct {
	BaseURL   string
	Username  string
	Password  string
	Transport *http.Transport
}

ClientInfo contains the information needed to make HTTP requests to RabbitMQ management API

func GetClientInfoForPod

func GetClientInfoForPod(ctx context.Context, k8sClient client.Reader, rmq *rabbitmqv1beta1.RabbitmqCluster, podIP string) (*ClientInfo, error)

GetClientInfoForPod creates ClientInfo for a specific pod IP. This is useful for checking individual pods instead of going through the service.

Jump to

Keyboard shortcuts

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