ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Backend.Rapi

Description

Implementation of the RAPI client interface.

Synopsis

Documentation

getUrl :: Monad m => String -> IO (m String)Source

curlOpts :: [CurlOption]Source

ioErrToResult :: IO a -> IO (Result a)Source

formatHost :: String -> StringSource

getInstances :: NameAssoc -> String -> Result [(String, Instance)]Source

getNodes :: NameAssoc -> String -> Result [(String, Node)]Source

getGroups :: String -> Result [(String, Group)]Source

parseCluster :: JSObject JSValue -> Result ([String], IPolicy, String)Source

readDataHttp :: String -> IO (Result String, Result String, Result String, Result String)Source

readDataFile :: String -> IO (Result String, Result String, Result String, Result String)Source

readData :: String -> IO (Result String, Result String, Result String, Result String)Source

parseData :: (Result String, Result String, Result String, Result String) -> Result ClusterDataSource

Builds the cluster data from the raw Rapi content.

loadDataSource

Arguments

:: String

Cluster or URL to use as source

-> IO (Result ClusterData) 

Top level function for data loading.