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