Versions in this module Expand all Collapse all v0 v0.6.2 Dec 12, 2017 v0.6.1 Dec 4, 2017 v0.6.0 Nov 8, 2017 Changes in this version + func AuthAdd(context *clusterd.Context, clusterName, name, keyringPath string, ...) error + func AuthGetOrCreate(context *clusterd.Context, clusterName, name, keyringPath string, ...) error + func CreatePoolWithProfile(context *clusterd.Context, clusterName string, newPoolReq model.Pool, ...) error + func DeletePool(context *clusterd.Context, clusterName string, name string) error + func ExecuteCephCommandPlainNoOutputFile(context *clusterd.Context, clusterName string, args []string) ([]byte, error) + func ExecuteRBDCommandWithTimeout(context *clusterd.Context, clusterName string, args []string) (string, error) + func GetPoolNamesByID(context *clusterd.Context, clusterName string) (map[int]string, error) + func GetPools(context *clusterd.Context, clusterName string) ([]model.Pool, error) + func MapImage(context *clusterd.Context, ...) error + func UnMapImage(context *clusterd.Context, ...) error type CephErasureCodeProfile + FailureDomain string type CephStoragePoolDetails + FailureDomain string + func ModelPoolToCephPool(modelPool model.Pool) CephStoragePoolDetails + type CrushMap struct + Buckets []struct{ ... } + Devices []struct{ ... } + Rules []struct{ ... } + Tunables struct{} + Types []struct{ ... } type MDSMap + DataPools []int + MetadataPool int type OSDDump + func (dump *OSDDump) StatusByID(id int64) (int64, int64, error) v0.5.1 Aug 15, 2017 Changes in this version + func CreatePoolForApp(context *clusterd.Context, clusterName string, newPool CephStoragePoolDetails, ...) error type CheckMessage + Summary struct{ ... } type PgMap + CacheEvictBps uint64 + CacheFlushBps uint64 + CachePromoteBps uint64 + ReadBps uint64 + ReadOps uint64 + RecoveryBps uint64 + RecoveryKeysPerSec uint64 + RecoveryObjectsPerSec uint64 + WriteBps uint64 + WriteOps uint64 v0.5.0 Aug 8, 2017 Changes in this version + const AdminUsername + const CephHealthErr + const CephHealthOK + const CephHealthWarn + const CephTool + const CrushTool + const ImageMinSize + const RBDTool + func AppendAdminConnectionArgs(args []string, configDir, clusterName string) []string + func AuthDelete(context *clusterd.Context, clusterName, name string) error + func AuthGetKey(context *clusterd.Context, clusterName, name string) (string, error) + func AuthGetOrCreateKey(context *clusterd.Context, clusterName, name string, caps []string) (string, error) + func CreateDefaultCrushMap(context *clusterd.Context, clusterName string) (string, error) + func CreateErasureCodeProfile(context *clusterd.Context, clusterName string, ...) error + func CreateFilesystem(context *clusterd.Context, clusterName string, ...) error + func CreatePool(context *clusterd.Context, clusterName string, newPool CephStoragePoolDetails) (string, error) + func DeleteImage(context *clusterd.Context, clusterName, name, poolName string) error + func ExecuteCephCommand(context *clusterd.Context, clusterName string, args []string) ([]byte, error) + func ExecuteCephCommandPlain(context *clusterd.Context, clusterName string, args []string) ([]byte, error) + func ExecuteRBDCommand(context *clusterd.Context, clusterName string, args []string) ([]byte, error) + func ExecuteRBDCommandNoFormat(context *clusterd.Context, clusterName string, args []string) ([]byte, error) + func FailMDS(context *clusterd.Context, clusterName string, gid int) error + func FormatLocation(location string) ([]string, error) + func GetCrushMap(context *clusterd.Context, clusterName string) (string, error) + func HealthToModelHealthStatus(cephHealth string) model.HealthStatus + func ListErasureCodeProfiles(context *clusterd.Context, clusterName string) ([]string, error) + func MarkFilesystemAsDown(context *clusterd.Context, clusterName string, fsName string) error + func RemoveFilesystem(context *clusterd.Context, clusterName string, fsName string) error + func SetCrushMap(context *clusterd.Context, clusterName, compiledMap string) (string, error) + func SetCrushTunables(context *clusterd.Context, clusterName, profile string) (string, error) + func SetPoolProperty(context *clusterd.Context, clusterName, name, propName string, propVal string) error + func StatusPlain(context *clusterd.Context, clusterName string) ([]byte, error) + type CephBlockImage struct + Format int + Name string + Size uint64 + func CreateImage(context *clusterd.Context, clusterName, name, poolName string, size uint64) (*CephBlockImage, error) + func ListImages(context *clusterd.Context, clusterName, poolName string) ([]CephBlockImage, error) + type CephErasureCodeProfile struct + CodingChunkCount uint + DataChunkCount uint + Plugin string + Technique string + func GetErasureCodeProfileDetails(context *clusterd.Context, clusterName, name string) (CephErasureCodeProfile, error) + type CephFilesystem struct + DataPoolIDs []int + DataPools []string + MetadataPool string + MetadataPoolID int + Name string + func ListFilesystems(context *clusterd.Context, clusterName string) ([]CephFilesystem, error) + type CephFilesystemDetails struct + ID int + MDSMap MDSMap + func GetFilesystem(context *clusterd.Context, clusterName string, fsName string) (*CephFilesystemDetails, error) + type CephStatus struct + ElectionEpoch int + FSID string + Health HealthStatus + MgrMap MgrMap + MonMap MonMap + OsdMap struct{ ... } + PgMap PgMap + Quorum []int + QuorumNames []string + func Status(context *clusterd.Context, clusterName string) (CephStatus, error) + type CephStoragePoolDetails struct + ErasureCodeProfile string + Name string + Number int + Size uint + func GetPoolDetails(context *clusterd.Context, clusterName, name string) (CephStoragePoolDetails, error) + type CephStoragePoolStats struct + Pools []struct{ ... } + func GetPoolStats(context *clusterd.Context, clusterName string) (*CephStoragePoolStats, error) + type CephStoragePoolSummary struct + Name string + Number int + func ListPoolSummaries(context *clusterd.Context, clusterName string) ([]CephStoragePoolSummary, error) + type CephUsage struct + Stats struct{ ... } + func Usage(context *clusterd.Context, clusterName string) (*CephUsage, error) + type CheckMessage struct + Message string + Severity string + type HealthStatus struct + Checks map[string]CheckMessage + Status string + 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 + type MgrMap struct + ActiveAddr string + ActiveGID int + ActiveName string + Available bool + Epoch int + Standbys []MgrStandby + type MgrStandby struct + GID int + Name string + type MonMap struct + CreatedTime string + Epoch int + FSID string + ModifiedTime string + Mons []MonMapEntry + type MonMapEntry struct + Address string + Name string + Rank int + type MonStats struct + Health struct{ ... } + Quorum []int + func GetMonStats(context *clusterd.Context, clusterName string) (*MonStats, error) + 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(context *clusterd.Context, clusterName string, debug bool) (MonStatusResponse, error) + type MonTimeSkewStatus struct + Health string + Latency json.Number + Skew json.Number + type MonTimeStatus struct + Checks struct{ ... } + Skew map[string]MonTimeSkewStatus + func GetMonTimeStatus(context *clusterd.Context, clusterName string) (*MonTimeStatus, error) + type OSDDump struct + OSDs []struct{ ... } + func GetOSDDump(context *clusterd.Context, clusterName string) (*OSDDump, error) + type OSDPerfStats struct + PerfInfo []struct{ ... } + func GetOSDPerfStats(context *clusterd.Context, clusterName string) (*OSDPerfStats, error) + type OSDUsage struct + OSDNodes []struct{ ... } + Summary struct{ ... } + func GetOSDUsage(context *clusterd.Context, clusterName string) (*OSDUsage, 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