|
|
|
| Description |
| Implementation of the RAPI client interface.
|
|
| Synopsis |
|
| curlOpts :: [CurlOption] | | | getUrl :: Monad m => String -> IO (m String) | | | formatHost :: String -> String | | | getInstances :: NameAssoc -> String -> Result [(String, Instance)] | | | getNodes :: NameAssoc -> String -> Result [(String, Node)] | | | getGroups :: String -> Result [(String, Group)] | | | getFakeGroups :: Result [(String, Group)] | | | parseInstance :: NameAssoc -> [(String, JSValue)] -> Result (String, Instance) | | | parseNode :: NameAssoc -> [(String, JSValue)] -> Result (String, Node) | | | parseGroup :: [(String, JSValue)] -> Result (String, Group) | | | 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 |
|
| curlOpts :: [CurlOption] | Source |
|
| The curl options we use
|
|
| getUrl :: Monad m => String -> IO (m String) | Source |
|
| Read an URL via curl and return the body if successful.
|
|
| formatHost :: String -> String | Source |
|
| Append the default port if not passed in.
|
|
|
| Parse a instance list in JSON format.
|
|
|
| Parse a node list in JSON format.
|
|
|
| Parse a group list in JSON format.
|
|
|
|
|
| Construct an instance from a JSON object.
|
|
|
| Construct a node from a JSON object.
|
|
|
| Construct a group from a JSON object.
|
|
|
| :: String | Cluster or URL to use as source
| | -> IO (Result String, Result String, Result String, Result String) | | | Loads the raw cluster data from an URL.
|
|
|
|
| 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
|
|
|
| Produced by Haddock version 2.6.0 |