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
- getNumInstances :: (([Instance], [Instance]) -> [Instance]) -> ConfigData -> Node -> Int
- fieldsMap :: FieldMap Node Runtime
- rpcResultNodeBroken :: Node -> (Node, Runtime)
- storageFields :: [String]
- hypervisorFields :: [String]
- queryDomainRequired :: [String] -> [String] -> Bool
- collectLiveData :: Bool -> ConfigData -> [String] -> [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
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
getNumInstances :: (([Instance], [Instance]) -> [Instance]) -> ConfigData -> Node -> IntSource
rpcResultNodeBroken :: Node -> (Node, Runtime)Source
storageFields :: [String]Source
hypervisorFields :: [String]Source
queryDomainRequired :: [String] -> [String] -> BoolSource
collectLiveData :: Bool -> ConfigData -> [String] -> [Node] -> IO [(Node, Runtime)]Source
Collect live data from RPC query if enabled.