Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.WConfd.Language
Description
Function related to serialisation of WConfD requests
Synopsis
Documentation
data LockRequestType #
Operation to be carried out on a lock (request exclusive/shared ownership, or release).
Constructors
ReqExclusive | |
ReqShared | |
ReqRelease |
Instances
Show LockRequestType # | |
Defined in Ganeti.WConfd.Language Methods showsPrec :: Int -> LockRequestType -> ShowS show :: LockRequestType -> String showList :: [LockRequestType] -> ShowS | |
Eq LockRequestType # | |
Defined in Ganeti.WConfd.Language Methods (==) :: LockRequestType -> LockRequestType -> Bool (/=) :: LockRequestType -> LockRequestType -> Bool | |
JSON LockRequestType # | |
Defined in Ganeti.WConfd.Language Methods readJSON :: JSValue -> Result LockRequestType showJSON :: LockRequestType -> JSValue readJSONs :: JSValue -> Result [LockRequestType] showJSONs :: [LockRequestType] -> JSValue |
type GanetiLockRequest = [(GanetiLocks, LockRequestType)] #
The type describing how lock update requests are passed over the wire.
fromGanetiLockRequest :: GanetiLockRequest -> [LockRequest GanetiLocks] #
From a GanetiLockRequest obtain a list of Ganeti.Lock.Allocation.LockRequest, suitable to updateLocks.