Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 server.
- handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)
- handleCallWrapper :: Lock -> JQStatus -> Result ConfigData -> LuxiOp -> IO (ErrorResult JSValue)
- handleCall :: Lock -> JQStatus -> ConfigData -> LuxiOp -> IO (ErrorResult JSValue)
- computeJobUpdate :: ConfigData -> JobId -> [String] -> JSValue -> IO (JSValue, JSValue)
- type LuxiConfig = (Lock, JQStatus, ConfigReader)
- luxiExec :: LuxiConfig -> LuxiOp -> IO (Bool, GenericResult GanetiException JSValue)
- luxiHandler :: LuxiConfig -> Handler LuxiOp IO JSValue
- type PrepResult = (Server, IORef (Result ConfigData), JQStatus)
- activateMasterIP :: IO (Result ())
- checkMain :: CheckFn ()
- prepMain :: PrepFn () PrepResult
- main :: MainFn () PrepResult
Documentation
handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)Source
handleCallWrapper :: Lock -> JQStatus -> Result ConfigData -> LuxiOp -> IO (ErrorResult JSValue)Source
handleCall :: Lock -> JQStatus -> ConfigData -> LuxiOp -> IO (ErrorResult JSValue)Source
computeJobUpdate :: ConfigData -> JobId -> [String] -> JSValue -> IO (JSValue, JSValue)Source
type LuxiConfig = (Lock, JQStatus, ConfigReader)Source
luxiExec :: LuxiConfig -> LuxiOp -> IO (Bool, GenericResult GanetiException JSValue)Source
luxiHandler :: LuxiConfig -> Handler LuxiOp IO JSValueSource
type PrepResult = (Server, IORef (Result ConfigData), JQStatus)Source
activateMasterIP :: IO (Result ())Source
prepMain :: PrepFn () PrepResultSource
Prepare function for luxid.
main :: MainFn () PrepResultSource
Main function.