ganeti

Safe HaskellSafe-Infered

Ganeti.Query.Node

Description

Implementation of the Ganeti Query2 node queries.

Synopsis

Documentation

type Runtime = Either RpcError RpcResultNodeInfoSource

Runtime is the resulting type for NodeInfo call.

getAttrFromStorageInfo :: JSON a => (StorageInfo -> Maybe a) -> Maybe StorageInfo -> JSValueSource

fieldsMap :: FieldMap Node RuntimeSource

The node fields map.

queryDomainRequired :: [String] -> [String] -> BoolSource

collectLiveData :: Bool -> ConfigData -> [String] -> [Node] -> IO [(Node, Runtime)]Source

Collect live data from RPC query if enabled.