Safe Haskell | Safe-Infered |
---|
Ganeti.Confd.Client
Description
Implementation of the Ganeti Confd client functionality.
- getConfdClient :: IO ConfdClient
- query :: ConfdClient -> ConfdRequestType -> ConfdQuery -> IO (Maybe ConfdReply)
- updateConfdReply :: ConfdReply -> Maybe ConfdReply -> Maybe ConfdReply
- queryOneServer :: MVar () -> MVar (Maybe ConfdReply) -> ConfdRequestType -> ConfdQuery -> HashKey -> (String, PortNumber) -> IO ()
Documentation
getConfdClient :: IO ConfdClientSource
Builds a properly initialized ConfdClient
query :: ConfdClient -> ConfdRequestType -> ConfdQuery -> IO (Maybe ConfdReply)Source
Sends a query to all the Confd servers the client is connected to. Returns the most up-to-date result according to the serial number, chosen between those received before the timeout.
updateConfdReply :: ConfdReply -> Maybe ConfdReply -> Maybe ConfdReplySource
queryOneServer :: MVar () -> MVar (Maybe ConfdReply) -> ConfdRequestType -> ConfdQuery -> HashKey -> (String, PortNumber) -> IO ()Source