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