Help us shape the future of Go! Take the 2026 Go Developer Survey

rabbitmqclient

package
v2.23.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

type DefaultRabbitmqClientFactory added in v2.21.0

type DefaultRabbitmqClientFactory struct{}

DefaultRabbitmqClientFactory is the default implementation of RabbitmqClientFactory.

func (*DefaultRabbitmqClientFactory) GetClientForPod added in v2.21.0

GetClientForPod creates a real rabbithole client for a specific pod.

func (*DefaultRabbitmqClientFactory) GetClientForService added in v2.21.1

GetClientForService creates a real rabbithole client using the main Service that exposes the management API.

type RabbitmqClient added in v2.21.0

type RabbitmqClient interface {
	Overview() (*rabbithole.Overview, error)
	HealthCheckNodeIsQuorumCritical() (rabbithole.HealthCheckStatus, error)
	ListDeprecatedFeaturesUsed() ([]rabbithole.DeprecatedFeature, error)
}

RabbitmqClient represents a subset of the rabbithole.Client that the operator uses.

type RabbitmqClientFactory added in v2.21.0

type RabbitmqClientFactory interface {
	GetClientForPod(ctx context.Context, k8sClient client.Reader, rmq *rabbitmqv1beta1.RabbitmqCluster, podName string) (RabbitmqClient, error)
	GetClientForService(ctx context.Context, k8sClient client.Reader, rmq *rabbitmqv1beta1.RabbitmqCluster) (RabbitmqClient, error)
}

RabbitmqClientFactory creates a RabbitmqClient targeting either a specific pod or the cluster Service.

Jump to

Keyboard shortcuts

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