Versions in this module Expand all Collapse all v1 v1.0.1 May 14, 2019 v1.0.0 May 2, 2019 v0 v0.9.3 Mar 2, 2019 v0.9.2 Jan 26, 2019 v0.9.1 Jan 1, 2019 v0.9.0 Dec 8, 2018 Changes in this version + const EncryptedDeviceKey + const OSDsPerDeviceKey type StoreConfig + EncryptedDevice bool + OSDsPerDevice int v0.8.3 Oct 1, 2018 v0.8.2 Sep 18, 2018 v0.8.1 Aug 1, 2018 v0.8.0 Jul 18, 2018 Changes in this version + const Bluestore + const BluestoreDirBlockName + const BluestoreDirDBName + const BluestoreDirWalName + const DBDefaultSizeMB + const DatabaseSizeMBKey + const Filestore + const JournalDefaultSizeMB + const JournalSizeMBKey + const MetadataDeviceKey + const OSDFSStoreNameFmt + const StoreTypeKey + const UseRemainingSpace + const WalDefaultSizeMB + const WalSizeMBKey + func GetConfigStoreName(nodeName string) string + func LoadOSDDirMap(kv *k8sutil.ConfigMapKVStore, nodeName string) (map[string]int, error) + func MetadataDevice(config map[string]string) string + func PopulateCollocatedPerfSchemeEntry(entry *PerfSchemeEntry, device string, storeConfig StoreConfig) error + func PopulateDistributedPerfSchemeEntry(entry *PerfSchemeEntry, device string, metadataInfo *MetadataDeviceInfo, ...) error + func RemoveFromScheme(e *PerfSchemeEntry, kv *k8sutil.ConfigMapKVStore, storeName string) error + func SaveOSDDirMap(kv *k8sutil.ConfigMapKVStore, nodeName string, dirMap map[string]int) error + type MetadataDeviceInfo struct + Device string + DiskUUID string + Partitions []*MetadataDevicePartition + func NewMetadataDeviceInfo(device string) *MetadataDeviceInfo + func (m *MetadataDeviceInfo) GetPartitionArgs() []string + type MetadataDevicePartition struct + ID int + OffsetMB int + OsdUUID uuid.UUID + PartitionUUID string + SizeMB int + Type PartitionType + type PartitionType int + const BlockPartitionType + const DatabasePartitionType + const FilestoreDataPartitionType + const WalPartitionType + type PerfScheme struct + Entries []*PerfSchemeEntry + Metadata *MetadataDeviceInfo + func LoadScheme(kv *k8sutil.ConfigMapKVStore, storeName string) (*PerfScheme, error) + func NewPerfScheme() *PerfScheme + func (s *PerfScheme) DeleteSchemeEntry(e *PerfSchemeEntry) error + func (s *PerfScheme) SaveScheme(kv *k8sutil.ConfigMapKVStore, storeName string) error + func (s *PerfScheme) String() string + func (s *PerfScheme) UpdateSchemeEntry(e *PerfSchemeEntry) error + type PerfSchemeEntry struct + FSCreated bool + ID int + OsdUUID uuid.UUID + Partitions map[PartitionType]*PerfSchemePartitionDetails + StoreType string + func NewPerfSchemeEntry(storeType string) *PerfSchemeEntry + func (e *PerfSchemeEntry) GetDataPartitionType() PartitionType + func (e *PerfSchemeEntry) GetPartitionArgs() []string + func (e *PerfSchemeEntry) IsCollocated() bool + func (e *PerfSchemeEntry) String() string + type PerfSchemePartitionDetails struct + Device string + DiskUUID string + OffsetMB int + PartitionUUID string + SizeMB int + type StoreConfig struct + DatabaseSizeMB int + JournalSizeMB int + StoreType string + WalSizeMB int + func ToStoreConfig(config map[string]string) StoreConfig