rabbitmqclient

package
v2.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MPL-2.0 Imports: 10 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, podName string) (*rabbithole.Client, error)

GetRabbitmqClientForPod creates a rabbithole client for a specific pod using its stable DNS name. It fetches credentials from the default user secret and connects directly to the pod via its stable DNS.

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, podName string) (*ClientInfo, error)

GetClientInfoForPod creates ClientInfo for a specific pod using its stable DNS name. 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