Safe Haskell | Safe-Infered |
---|
Some utility functions, based on the Confd client, providing data in a ready-to-use way.
- getInstances :: String -> Maybe String -> Maybe Int -> ResultT String IO ([Instance], [Instance])
- getDisks :: Instance -> Maybe String -> Maybe Int -> ResultT String IO [Disk]
- getInstanceDisks :: String -> Maybe String -> Maybe Int -> ResultT String IO [(Instance, [Disk])]
- getDiagnoseCollectorFilename :: Maybe String -> Maybe Int -> ResultT String IO String
Documentation
getInstances :: String -> Maybe String -> Maybe Int -> ResultT String IO ([Instance], [Instance])Source
Get the list of instances the given node is ([primary], [secondary]) for. The server address and the server port parameters are mainly intended for testing purposes. If they are Nothing, the default values will be used.
getInstanceDisks :: String -> Maybe String -> Maybe Int -> ResultT String IO [(Instance, [Disk])]Source
Get the list of instances on the given node along with their disks The server address and the server port parameters are mainly intended for testing purposes. If they are Nothing, the default values will be used.
getDiagnoseCollectorFilename :: Maybe String -> Maybe Int -> ResultT String IO StringSource
Get the name of the diagnose collector.