Safe Haskell | Safe-Infered |
---|
Implementation of Utility functions for storage
- getDefaultStorageKey :: ConfigData -> DiskTemplate -> Maybe StorageKey
- getDefaultSpindleSU :: ConfigData -> (StorageType, Maybe StorageKey)
- getClusterStorageUnitRaws :: ConfigData -> [StorageUnitRaw]
- foldSUs :: [(StorageType, Maybe StorageKey)] -> [StorageUnitRaw]
- getExclusiveStorage :: ConfigData -> Node -> Maybe Bool
- hasExclusiveStorageFlag :: ConfigData -> Node -> Bool
- nodesWithValidConfig :: ConfigData -> [Node] -> [Node]
- getStorageUnitsOfNode :: ConfigData -> Node -> [StorageUnit]
- getStorageUnitsOfNodes :: ConfigData -> [Node] -> Map String [StorageUnit]
Documentation
getDefaultStorageKey :: ConfigData -> DiskTemplate -> Maybe StorageKeySource
getDefaultSpindleSU :: ConfigData -> (StorageType, Maybe StorageKey)Source
foldSUs :: [(StorageType, Maybe StorageKey)] -> [StorageUnitRaw]Source
getExclusiveStorage :: ConfigData -> Node -> Maybe BoolSource
hasExclusiveStorageFlag :: ConfigData -> Node -> BoolSource
nodesWithValidConfig :: ConfigData -> [Node] -> [Node]Source
Filter for nodes with a valid config
getStorageUnitsOfNode :: ConfigData -> Node -> [StorageUnit]Source
getStorageUnitsOfNodes :: ConfigData -> [Node] -> Map String [StorageUnit]Source
Get the storage unit map for all nodes