Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 node queries.
- type NodeRuntime = Either RpcError RpcResultNodeInfo
- nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]
- nodeLiveFieldExtract :: FieldName -> RpcResultNodeInfo -> JSValue
- nodeLiveRpcCall :: FieldName -> NodeRuntime -> Node -> ResultEntry
- nodeLiveFieldBuilder :: (FieldName, FieldTitle, FieldType, String, FieldDoc) -> FieldData Node NodeRuntime
- nodeRoleDoc :: String
- getNodePower :: ConfigData -> Node -> ResultEntry
- nodeFields :: FieldList Node NodeRuntime
- nodeFieldsMap :: FieldMap Node NodeRuntime
- maybeCollectLiveData :: Bool -> ConfigData -> [Node] -> IO [(Node, NodeRuntime)]
Documentation
type NodeRuntime = Either RpcError RpcResultNodeInfoSource
NodeRuntime is the resulting type for NodeInfo call.
nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]Source
nodeLiveFieldExtract :: FieldName -> RpcResultNodeInfo -> JSValueSource
nodeLiveRpcCall :: FieldName -> NodeRuntime -> Node -> ResultEntrySource
nodeLiveFieldBuilder :: (FieldName, FieldTitle, FieldType, String, FieldDoc) -> FieldData Node NodeRuntimeSource
nodeRoleDoc :: StringSource
getNodePower :: ConfigData -> Node -> ResultEntrySource
nodeFieldsMap :: FieldMap Node NodeRuntimeSource
The node fields map.
maybeCollectLiveData :: Bool -> ConfigData -> [Node] -> IO [(Node, NodeRuntime)]Source
Collect live data from RPC query if enabled.
FIXME: Check which fields we actually need and possibly send empty hvsvgs if no info from hypervisorvolume group respectively is required