Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti confd server functionality.
- type CheckResult = ()
- type PrepResult = Config Snap ()
- latestAPIVersion :: Int
- data DataCollector = DataCollector {}
- collectors :: [DataCollector]
- defaultHttpConf :: Config Snap ()
- checkMain :: CheckFn CheckResult
- prepMain :: PrepFn CheckResult PrepResult
- versionQ :: Snap ()
- version1Api :: Snap ()
- dcListItem :: DataCollector -> JSValue
- listHandler :: Snap ()
- reportHandler :: Snap ()
- allReports :: Snap ()
- catFromName :: String -> Result (Maybe DCCategory)
- errorReport :: Snap ()
- error404 :: Snap ()
- oneReport :: Snap ()
- monitoringApi :: Snap ()
- main :: MainFn CheckResult PrepResult
Types and constants definitions
type CheckResult = ()Source
type PrepResult = Config Snap ()Source
latestAPIVersion :: IntSource
Configuration handling
defaultHttpConf :: Config Snap ()Source
Helper functions
checkMain :: CheckFn CheckResultSource
Check function for the monitoring agent.
prepMain :: PrepFn CheckResult PrepResultSource
Prepare function for monitoring agent.
Query answers
version1Api :: Snap ()Source
dcListItem :: DataCollector -> JSValueSource
listHandler :: Snap ()Source
reportHandler :: Snap ()Source
allReports :: Snap ()Source
catFromName :: String -> Result (Maybe DCCategory)Source
errorReport :: Snap ()Source
monitoringApi :: Snap ()Source
main :: MainFn CheckResult PrepResultSource
Main function.