Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti confd server functionality.
- type CRef = IORef (Result (ConfigData, LinkIpMap))
- type StatusAnswer = (ConfdReplyStatus, JSValue)
- queryUnknownEntry :: StatusAnswer
- queryArgumentError :: StatusAnswer
- gntErrorToResult :: ErrorResult a -> Result a
- nodeRole :: ConfigData -> String -> Result ConfdNodeRole
- getNodePipByInstanceIp :: ConfigData -> LinkIpMap -> String -> String -> StatusAnswer
- buildResponse :: (ConfigData, LinkIpMap) -> ConfdRequest -> Result StatusAnswer
- serializeResponse :: Result StatusAnswer -> ConfdReply
- responder :: CRef -> Socket -> HashKey -> String -> SockAddr -> IO ()
- respondInner :: Result (ConfigData, LinkIpMap) -> HashKey -> ConfdRequest -> String
- listener :: Socket -> HashKey -> (Socket -> HashKey -> String -> SockAddr -> IO ()) -> IO ()
- type PrepResult = (Socket, IORef (Result (ConfigData, LinkIpMap)))
- checkMain :: CheckFn (Family, SockAddr)
- prepMain :: PrepFn (Family, SockAddr) PrepResult
- main :: MainFn (Family, SockAddr) PrepResult
Types and constants definitions
type CRef = IORef (Result (ConfigData, LinkIpMap))Source
type StatusAnswer = (ConfdReplyStatus, JSValue)Source
gntErrorToResult :: ErrorResult a -> Result aSource
Confd base functionality
nodeRole :: ConfigData -> String -> Result ConfdNodeRoleSource
getNodePipByInstanceIp :: ConfigData -> LinkIpMap -> String -> String -> StatusAnswerSource
buildResponse :: (ConfigData, LinkIpMap) -> ConfdRequest -> Result StatusAnswerSource
Client input/output handlers
respondInner :: Result (ConfigData, LinkIpMap) -> HashKey -> ConfdRequest -> StringSource
type PrepResult = (Socket, IORef (Result (ConfigData, LinkIpMap)))Source
prepMain :: PrepFn (Family, SockAddr) PrepResultSource
Prepare function for confd.
main :: MainFn (Family, SockAddr) PrepResultSource
Main function.