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 ¶
- func ControlContainer(tb testing.TB, c *ceph.Container) testcontainers.Container
- func Gateways(tb testing.TB, c *ceph.Container) []*rgw.Gateway
- func InitialManager(tb testing.TB, c *ceph.Container) testcontainers.Container
- func Managers(tb testing.TB, c *ceph.Container) []*ceph.ManagerContainer
- func Monitors(tb testing.TB, c *ceph.Container) []*ceph.MonitorContainer
- func OSDs(tb testing.TB, c *ceph.Container) []*ceph.OSDContainer
- func RGWGateways(tb testing.TB, c *rgw.Container) []*rgw.Gateway
- func ServiceContainers(tb testing.TB, c *ceph.Container) []testcontainers.Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlContainer ¶
ControlContainer returns the stable CLI container of c.
func InitialManager ¶
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 RGWGateways ¶
RGWGateways returns the RGW gateways of the cluster started by rgw.Run.
func ServiceContainers ¶ added in v0.5.0
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.