Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 node queries.
- type Runtime = Either RpcError RpcResultNodeInfo
- nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]
- 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
- collectLiveData :: Bool -> ConfigData -> [Node] -> IO [(Node, Runtime)]
Documentation
type Runtime = Either RpcError RpcResultNodeInfoSource
Runtime is the resulting type for NodeInfo call.
nodeLiveFieldsDefs :: [(FieldName, FieldTitle, FieldType, String, FieldDoc)]Source
nodeLiveFieldExtract :: FieldName -> RpcResultNodeInfo -> JSValueSource
nodeLiveRpcCall :: FieldName -> Runtime -> Node -> ResultEntrySource
nodeLiveFieldBuilder :: (FieldName, FieldTitle, FieldType, String, FieldDoc) -> FieldData Node RuntimeSource
nodeRoleDoc :: StringSource
getNodePower :: ConfigData -> Node -> ResultEntrySource
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