Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti Query2 server.
- makeLuxidClientId :: JQStatus -> IO ClientId
- withLockedWconfdConfig :: (MonadBase IO m, MonadError GanetiException m) => ClientId -> (ConfigData -> RpcClientMonad a) -> m a
- handleQuery :: [ItemType -> FilterField] -> ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)
- handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)
- handleUuidQuery :: 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
makeLuxidClientId :: JQStatus -> IO ClientIdSource
withLockedWconfdConfig :: (MonadBase IO m, MonadError GanetiException m) => ClientId -> (ConfigData -> RpcClientMonad a) -> m aSource
handleQuery :: [ItemType -> FilterField] -> ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)Source
handleClassicQuery :: ConfigData -> ItemType -> [Either String Integer] -> [String] -> Bool -> IO (GenericResult GanetiException JSValue)Source
handleUuidQuery :: 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.