ganeti
Safe HaskellNone

Ganeti.Metad.ConfigCore

Description

Functions of the metadata daemon exported for RPC

Synopsis

The monad in which all the Metad functions execute

data MetadHandle Source #

Constructors

MetadHandle 

type MetadMonadIntType = ReaderT MetadHandle IO Source #

A type alias for easier referring to the actual content of the monad when implementing its instances.

newtype MetadMonadInt a Source #

The internal part of the monad without error handling.

Instances

Instances details
Monad MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Functor MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Methods

fmap :: (a -> b) -> MetadMonadInt a -> MetadMonadInt b

(<$) :: a -> MetadMonadInt b -> MetadMonadInt a

Applicative MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

MonadIO MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Methods

liftIO :: IO a -> MetadMonadInt a

MonadLog MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Methods

logAt :: Priority -> String -> MetadMonadInt () Source #

MonadBase IO MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Methods

liftBase :: IO α -> MetadMonadInt α

MonadBaseControl IO MetadMonadInt # 
Instance details

Defined in Ganeti.Metad.ConfigCore

Associated Types

type StM MetadMonadInt a

Methods

liftBaseWith :: (RunInBase MetadMonadInt IO -> IO a) -> MetadMonadInt a

restoreM :: StM MetadMonadInt a -> MetadMonadInt a

type StM MetadMonadInt b # 
Instance details

Defined in Ganeti.Metad.ConfigCore

type StM MetadMonadInt b = StM MetadMonadIntType b

runMetadMonadInt :: MetadMonadInt a -> MetadHandle -> IO a Source #

Runs the internal part of the MetadMonad monad on a given daemon handle.

type MetadMonad = ResultT GanetiException MetadMonadInt Source #

The complete monad with error handling.

Basic functions in the monad

Functions available to the RPC module

echo :: String -> MetadMonad String Source #

updateConfig :: JSValue -> MetadMonad () Source #

Update the configuration with the received instance parameters.

The list of all functions exported to RPC.