Versions in this module Expand all Collapse all v0 v0.4.0 May 3, 2017 v0.3.1 Mar 28, 2017 Changes in this version + const CephHealthErr + const CephHealthOK + const CephHealthWarn + func StatusPlain(conn Connection) ([]byte, error) + type CephStoragePoolStats struct + Pools []struct{ ... } + func GetPoolStats(conn Connection) (*CephStoragePoolStats, error) + type CephUsage struct + Stats struct{ ... } + func Usage(conn Connection) (*CephUsage, error) type IOContext + Destroy func() type Image + Remove func() error + type MonStats struct + Health struct{ ... } + Quorum []int + func GetMonStats(conn Connection) (*MonStats, error) + type OSDDump struct + OSDs []struct{ ... } + func GetOSDDump(conn Connection) (*OSDDump, error) + type OSDPerfStats struct + PerfInfo []struct{ ... } + func GetOSDPerfStats(conn Connection) (*OSDPerfStats, error) + type OSDUsage struct + OSDNodes []struct{ ... } + Summary struct{ ... } + func GetOSDUsage(conn Connection) (*OSDUsage, error) v0.3.0 Mar 3, 2017 v0.2.2 Dec 19, 2016 v0.2.1 Dec 12, 2016 v0.2.0 Dec 8, 2016 v0.1.1 Dec 5, 2016 Changes in this version + func CreateFilesystem(conn Connection, fsName, metadataPool, dataPool string) error + func FailMDS(conn Connection, gid int) error + func MarkFilesystemAsDown(conn Connection, fsName string) error + func RemoveFilesystem(conn Connection, fsName string) error + type CephFilesystem struct + DataPoolIDs []int + DataPools []string + MetadataPool string + MetadataPoolID int + Name string + func ListFilesystems(conn Connection) ([]CephFilesystem, error) + type CephFilesystemDetails struct + ID int + MDSMap MDSMap + func GetFilesystem(conn Connection, fsName string) (*CephFilesystemDetails, error) + type MDSInfo struct + Address string + GID int + Name string + Rank int + State string + type MDSMap struct + Damaged []int + Enabled bool + Failed []int + FilesystemName string + In []int + Info map[string]MDSInfo + MaxMDS int + Root int + Stopped []int + TableServer int + Up map[string]int v0.1.0 Nov 8, 2016 Changes in this version + func AuthDelete(conn Connection, name string) error + func AuthGetKey(conn Connection, name string) (string, error) + func AuthGetOrCreateKey(conn Connection, name string, caps []string) (string, error) + func CreateErasureCodeProfile(conn Connection, config model.ErasureCodedPoolConfig, name string) error + func CreatePool(conn Connection, newPool CephStoragePoolDetails) (string, error) + func ExecuteMonCommand(connection Connection, cmd map[string]interface{}, message string) ([]byte, error) + func ExecuteMonCommandWithInfo(connection Connection, cmd map[string]interface{}, message string) ([]byte, string, error) + func HealthToModelHealthStatus(cephHealth string) model.HealthStatus + func ListErasureCodeProfiles(conn Connection) ([]string, error) + func SetPoolProperty(conn Connection, name, propName string, propVal interface{}) error + type CephErasureCodeProfile struct + CodingChunkCount uint + DataChunkCount uint + Plugin string + Technique string + func GetErasureCodeProfileDetails(conn Connection, name string) (CephErasureCodeProfile, error) + type CephStatus struct + ElectionEpoch int + FSID string + Health HealthStatus + MonMap MonMap + OsdMap struct{ ... } + PgMap PgMap + Quorum []int + QuorumNames []string + func Status(conn Connection) (CephStatus, error) + type CephStoragePoolDetails struct + ErasureCodeProfile string + Name string + Number int + Size uint + func GetPoolDetails(conn Connection, name string) (CephStoragePoolDetails, error) + type CephStoragePoolSummary struct + Name string + Number int + func ListPoolSummaries(conn Connection) ([]CephStoragePoolSummary, error) + type Connection interface + Connect func() error + MonCommand func(args []byte) (buffer []byte, info string, err error) + MonCommandWithInputBuffer func(args, inputBuffer []byte) (buffer []byte, info string, err error) + OpenIOContext func(pool string) (IOContext, error) + PingMonitor func(id string) (string, error) + ReadConfigFile func(path string) error + Shutdown func() + type ConnectionFactory interface + NewConnWithClusterAndUser func(clusterName string, userName string) (Connection, error) + NewFsid func() (string, error) + NewSecretKey func() (string, error) + type HealthService struct + AvailablePercent int + Health string + KbAvailable uint64 + KbTotal uint64 + KbUsed uint64 + LastUpdated string + Name string + StoreStats struct{ ... } + func GetMonitorHealthSummaries(cephStatus CephStatus) []HealthService + type HealthStatus struct + Detail []interface{} + Details struct{ ... } + OverallStatus string + Summary []HealthSummary + Timechecks struct{ ... } + type HealthSummary struct + Severity string + Summary string + type IOContext interface + CreateImage func(name string, size uint64, order int, args ...uint64) (image Image, err error) + GetImage func(name string) Image + GetImageNames func() (names []string, err error) + Pointer func() uintptr + Read func(oid string, data []byte, offset uint64) (int, error) + Write func(oid string, data []byte, offset uint64) error + WriteFull func(oid string, data []byte) error + type Image interface + Close func() error + Name func() string + Open func(args ...interface{}) error + Stat func() (info *ImageInfo, err error) + type ImageInfo struct + Block_name_prefix string + Num_objs uint64 + Obj_size uint64 + Order int + Parent_name string + Parent_pool int64 + Size uint64 + type MonMap struct + CreatedTime string + Epoch int + FSID string + ModifiedTime string + Mons []MonMapEntry + type MonMapEntry struct + Address string + Name string + Rank int + type MonStatusRequest struct + Args []string + Format string + ID int + Pool string + Prefix string + Var string + Weight float32 + type MonStatusResponse struct + MonMap struct{ ... } + Quorum []int + func GetMonStatus(adminConn Connection) (MonStatusResponse, error) + type OsdMap struct + Epoch int + Full bool + NearFull bool + NumInOsd int + NumOsd int + NumRemappedPgs int + NumUpOsd int + type PgMap struct + AvailableBytes uint64 + DataBytes uint64 + NumPgs int + PgsByState []PgStateEntry + TotalBytes uint64 + UsedBytes uint64 + Version int + type PgStateEntry struct + Count int + StateName string