Documentation ¶
Index ¶
- Constants
- Variables
- type Ceph
- func (c *Ceph) Attach(ctx driver.Context, v *types.Volume, s *types.Storage) error
- func (c *Ceph) Create(ctx driver.Context, v *types.Volume, s *types.Storage) error
- func (c *Ceph) Detach(ctx driver.Context, v *types.Volume, s *types.Storage) error
- func (c *Ceph) Format(ctx driver.Context, v *types.Volume, s *types.Storage) error
- func (c *Ceph) Name(ctx driver.Context) string
- func (c *Ceph) Options() map[string]types.Option
- func (c *Ceph) Path(ctx driver.Context, v *types.Volume) (string, error)
- func (c *Ceph) Remove(ctx driver.Context, v *types.Volume, s *types.Storage) error
- func (c *Ceph) Report(ctx driver.Context) ([]*types.Storage, error)
- func (c *Ceph) StoreMode(ctx driver.Context) driver.VolumeStoreMode
- type Command
- type PoolStats
- type QuorumStatus
- type RBDMap
- type Stats
Constants ¶
View Source
const ( // HealthOK denotes the status of ceph cluster when healthy. HealthOK = "HEALTH_OK" // HealthWarn denotes the status of ceph cluster when unhealthy but recovering. HealthWarn = "HEALTH_WARN" // HealthErr denotes the status of ceph cluster when unhealthy but usually needs // manual intervention. HealthErr = "HEALTH_ERR" )
Variables ¶
View Source
var ( // QuorumCommand represents ceph quorum_status command. QuorumCommand = []string{"quorum_status", "-f", "json"} // CephUsageCommand represents ceph df command. CephUsageCommand = []string{"df", "detail", "-f", "json"} // CephStatusCommand represents ceph status command. CephStatusCommand = []string{"status", "-f", "json"} // OsdDFCommand represents ceph osd df command. OsdDFCommand = []string{"osd", "df", "-f", "json"} // OsdPerfCommand represents ceph osd perf command. OsdPerfCommand = []string{"osd", "perf", "-f", "json"} // OsdDumpCommand represents ceph osd dump command. OsdDumpCommand = []string{"osd", "dump", "-f", "json"} )
Functions ¶
This section is empty.
Types ¶
type Ceph ¶
type Ceph struct{}
Ceph represents ceph volume driver struct.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command represents ceph command.
func NewCephCommand ¶
NewCephCommand returns ceph command instance.
func (*Command) RunCommand ¶
RunCommand is used to execute ceph command.
type PoolStats ¶
type PoolStats struct { Pools []struct { Name string `json:"name"` Stats struct { BytesUsed int64 `json:"bytes_used"` MaxAvail int64 `json:"max_avail"` } `json:"stats"` } `json:"pools"` }
PoolStats represents ceph pool status struct.
type QuorumStatus ¶
type QuorumStatus struct { MonMap monMap `json:"monmap"` QuorumLeaderName string `json:"quorum_leader_name"` }
QuorumStatus represents ceph quorum_status result struct.
Click to show internal directories.
Click to hide internal directories.