Versions in this module Expand all Collapse all v0 v0.1.0 Sep 27, 2023 Changes in this version + func CheckIfPoolExists(conn *rados.Conn, pool string) error + func ConnectToRados(ctx context.Context, c Credentials) (*rados.Conn, error) + func GetKeyFromKeyring(keyringFile string) (string, error) + type Command interface + PoolStats func() (*PoolStats, error) + type CommandClient struct + func NewCommandClient(conn *rados.Conn, poolName string) (*CommandClient, error) + func (c *CommandClient) PoolStats() (*PoolStats, error) + type CommandRequest struct + Detail string + Format string + Prefix string + type Credentials struct + Keyfile string + Monitors string + User string + type DfCommandResponse struct + Pools []Pool + Stats Stats + StatsByClass StatsByClass + type Pool struct + Id int + Name string + Stats PoolStats + type PoolStats struct + BytesUsed int + KbUsed int + MaxAvail int64 + Objects int + PercentUsed float64 + Stored int + type Stats struct + NumOsds int + NumPerPoolOmapOsds int + NumPerPoolOsds int + TotalAvailBytes int64 + TotalBytes int64 + TotalUsedBytes int + TotalUsedRawBytes int + TotalUsedRawRatio float64 + type StatsByClass map[string]struct