Documentation ¶
Index ¶
- 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
- type CommandClient
- type CommandRequest
- type Credentials
- type DfCommandResponse
- type Pool
- type PoolStats
- type Stats
- type StatsByClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToRados ¶
func GetKeyFromKeyring ¶
Types ¶
type CommandClient ¶
type CommandClient struct {
// contains filtered or unexported fields
}
func NewCommandClient ¶
func NewCommandClient(conn *rados.Conn, poolName string) (*CommandClient, error)
func (*CommandClient) PoolStats ¶
func (c *CommandClient) PoolStats() (*PoolStats, error)
type CommandRequest ¶
type Credentials ¶
type DfCommandResponse ¶
type DfCommandResponse struct { Stats Stats `json:"stats"` StatsByClass StatsByClass `json:"stats_by_class"` Pools []Pool `json:"pools"` }
type Stats ¶
type Stats struct { TotalBytes int64 `json:"total_bytes"` TotalAvailBytes int64 `json:"total_avail_bytes"` TotalUsedBytes int `json:"total_used_bytes"` TotalUsedRawBytes int `json:"total_used_raw_bytes"` TotalUsedRawRatio float64 `json:"total_used_raw_ratio"` NumOsds int `json:"num_osds"` NumPerPoolOsds int `json:"num_per_pool_osds"` NumPerPoolOmapOsds int `json:"num_per_pool_omap_osds"` }
Click to show internal directories.
Click to hide internal directories.