Safe Haskell | Safe-Infered |
---|
Implementation of the Ganeti maintenenace server.
- options :: [OptType]
- type CheckResult = ()
- type PrepResult = Config Snap ()
- loadClusterData :: ResultT String IO ClusterData
- maintenance :: IORef MemoryState -> ResultT String IO ()
- exposeState :: JSON a => (MemoryState -> a) -> IORef MemoryState -> Snap ()
- httpInterface :: IORef MemoryState -> Snap ()
- checkMain :: CheckFn CheckResult
- prepMain :: PrepFn CheckResult PrepResult
- main :: MainFn CheckResult PrepResult
Documentation
type CheckResult = ()Source
type PrepResult = Config Snap ()Source
loadClusterData :: ResultT String IO ClusterDataSource
maintenance :: IORef MemoryState -> ResultT String IO ()Source
exposeState :: JSON a => (MemoryState -> a) -> IORef MemoryState -> Snap ()Source
httpInterface :: IORef MemoryState -> Snap ()Source
checkMain :: CheckFn CheckResultSource
Check function for luxid.
prepMain :: PrepFn CheckResult PrepResultSource
Prepare function for luxid.
main :: MainFn CheckResult PrepResultSource
Main function.