ganeti

Safe HaskellSafe-Infered

Ganeti.Metad.WebServer

Description

Web server for the metadata daemon.

Documentation

type MetaM = Snap ()Source

split :: String -> [String]Source

lookupInstanceParams :: MonadError String m => String -> Map String b -> m bSource

error405 :: [Method] -> MetaMSource

maybeResult :: MonadError String m => Result t -> (t -> m a) -> m aSource

serveOsParams :: String -> Map String JSValue -> MetaMSource

lookupSingleParam :: String -> JSObject JSValue -> Result StringSource

serveSingleOsParam :: String -> Map String JSValue -> String -> MetaMSource

serveOsPackage :: String -> Map String JSValue -> String -> MetaMSource

serveOsScript :: String -> Map String JSValue -> String -> MetaMSource

handleMetadata :: MVar InstanceParams -> Method -> String -> String -> String -> MetaMSource

defaultHttpConf :: DaemonOptions -> FilePath -> FilePath -> Config Snap ()Source