clusteraccess

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package clusteraccess gives tests one-line access to the context-taking topology accessors of ceph.Container and rgw. Each helper fails the test on an error, so a refused call is never mistaken for an empty topology.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ControlContainer

func ControlContainer(tb testing.TB, c *ceph.Container) testcontainers.Container

ControlContainer returns the stable CLI container of c.

func Gateways

func Gateways(tb testing.TB, c *ceph.Container) []*rgw.Gateway

Gateways returns the RGW gateways of c sorted by name.

func InitialManager

func InitialManager(tb testing.TB, c *ceph.Container) testcontainers.Container

InitialManager returns the container of MGR a, the manager Run starts, or nil when no manager named a is a current candidate (it was removed, or the cluster started without managers and a later one has another name).

func Managers

func Managers(tb testing.TB, c *ceph.Container) []*ceph.ManagerContainer

Managers returns the owned MGR candidates of c sorted by daemon name.

func Monitors

func Monitors(tb testing.TB, c *ceph.Container) []*ceph.MonitorContainer

Monitors returns the owned MONs of c sorted by daemon name.

func OSDs

func OSDs(tb testing.TB, c *ceph.Container) []*ceph.OSDContainer

OSDs returns the owned OSDs of c sorted by ID.

func RGWGateways

func RGWGateways(tb testing.TB, c *rgw.Container) []*rgw.Gateway

RGWGateways returns the RGW gateways of the cluster started by rgw.Run.

func ServiceContainers added in v0.5.0

func ServiceContainers(tb testing.TB, c *ceph.Container) []testcontainers.Container

ServiceContainers returns tracked optional-service handles, including those still recorded after termination. Its bounded detached context also works during cleanup, without turning inventory failure into an empty result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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