clusteraccess

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 5 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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