ganeti
Safe HaskellNone

Ganeti.Metad.WebServer

Description

Web server for the metadata daemon.

Synopsis

Documentation

type MetaM = Snap () Source #

data MetaMExc Source #

Constructors

MetaMExc String 

throwError :: MonadBase IO m => String -> m a Source #

split :: String -> [String] Source #

lookupInstanceParams :: MonadBase IO m => String -> Map String b -> m b Source #

error404 :: MetaM Source #

The 404 "not found" error.

error405 :: [Method] -> MetaM Source #

The 405 "method not allowed error", including the list of allowed methods.

maybeResult :: MonadBase IO m => Result t -> (t -> m a) -> m a Source #

serveOsParams :: String -> Map String JSValue -> MetaM Source #

serveOsPackage :: String -> Map String JSValue -> String -> MetaM Source #

serveOsScript :: String -> Map String JSValue -> String -> MetaM Source #

handleMetadata :: MVar InstanceParams -> Method -> String -> String -> String -> MetaM Source #

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