Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 node queries.
- type Runtime = Either RpcError RpcResultNodeInfo
- nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]
- getAttrFromStorageInfo :: JSON a => (StorageInfo -> Maybe a) -> Maybe StorageInfo -> JSValue
- isStorageInfoOfType :: StorageType -> StorageInfo -> Bool
- getStorageInfoForDefault :: [StorageInfo] -> Maybe StorageInfo
- getStorageInfoForType :: [StorageInfo] -> StorageType -> Maybe StorageInfo
- nodeLiveFieldExtract :: FieldName -> RpcResultNodeInfo -> JSValue
- nodeLiveRpcCall :: FieldName -> Runtime -> Node -> ResultEntry
- nodeLiveFieldBuilder :: (FieldName, FieldTitle, FieldType, String, FieldDoc) -> FieldData Node Runtime
- nodeRoleDoc :: String
- getNodePower :: ConfigData -> Node -> ResultEntry
- nodeFields :: FieldList Node Runtime
- fieldsMap :: FieldMap Node Runtime
- rpcResultNodeBroken :: Node -> (Node, Runtime)
- collectLiveData :: Bool -> ConfigData -> [Node] -> IO [(Node, Runtime)]
- getDefaultHypervisorSpec :: ConfigData -> (Hypervisor, HvParams)
- getHvParamsFromCluster :: ConfigData -> Hypervisor -> HvParams
Documentation
type Runtime = Either RpcError RpcResultNodeInfoSource
Runtime is the resulting type for NodeInfo call.
nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]Source
getAttrFromStorageInfo :: JSON a => (StorageInfo -> Maybe a) -> Maybe StorageInfo -> JSValueSource
isStorageInfoOfType :: StorageType -> StorageInfo -> BoolSource
getStorageInfoForDefault :: [StorageInfo] -> Maybe StorageInfoSource
getStorageInfoForType :: [StorageInfo] -> StorageType -> Maybe StorageInfoSource
nodeLiveFieldExtract :: FieldName -> RpcResultNodeInfo -> JSValueSource
nodeLiveRpcCall :: FieldName -> Runtime -> Node -> ResultEntrySource
nodeLiveFieldBuilder :: (FieldName, FieldTitle, FieldType, String, FieldDoc) -> FieldData Node RuntimeSource
nodeRoleDoc :: StringSource
getNodePower :: ConfigData -> Node -> ResultEntrySource
rpcResultNodeBroken :: Node -> (Node, Runtime)Source
collectLiveData :: Bool -> ConfigData -> [Node] -> IO [(Node, Runtime)]Source
Collect live data from RPC query if enabled.
FIXME: Check which fields we actually need and possibly send empty hvs/vgs if no info from hypervisor/volume group respectively is required