Safe Haskell | Safe-Infered |
---|
Implementation of the RAPI client interface.
- filePrefix :: String
- getUrl :: Monad m => String -> IO (m String)
- connTimeout :: Long
- queryTimeout :: Long
- curlOpts :: [CurlOption]
- ioErrToResult :: IO a -> IO (Result a)
- formatHost :: String -> String
- getInstances :: NameAssoc -> String -> Result [(String, Instance)]
- getNodes :: NameAssoc -> String -> Result [(String, Node)]
- getGroups :: String -> Result [(String, Group)]
- parseInstance :: NameAssoc -> JSRecord -> Result (String, Instance)
- parseNode :: NameAssoc -> JSRecord -> Result (String, Node)
- parseGroup :: JSRecord -> Result (String, Group)
- parseCluster :: JSObject JSValue -> Result ([String], IPolicy)
- readDataHttp :: String -> IO (Result String, Result String, Result String, Result String)
- readDataFile :: String -> IO (Result String, Result String, Result String, Result String)
- readData :: String -> IO (Result String, Result String, Result String, Result String)
- parseData :: (Result String, Result String, Result String, Result String) -> Result ClusterData
- loadData :: String -> IO (Result ClusterData)
Documentation
filePrefix :: StringSource
connTimeout :: LongSource
queryTimeout :: LongSource
ioErrToResult :: IO a -> IO (Result a)Source
formatHost :: String -> StringSource
getInstances :: NameAssoc -> String -> Result [(String, Instance)]Source
parseGroup :: JSRecord -> Result (String, Group)Source
parseCluster :: JSObject JSValue -> Result ([String], IPolicy)Source
parseData :: (Result String, Result String, Result String, Result String) -> Result ClusterDataSource
Builds the cluster data from the raw Rapi content.
:: String | Cluster or URL to use as source |
-> IO (Result ClusterData) |
Top level function for data loading.