| Safe Haskell | Safe-Infered |
|---|
Ganeti.WConfd.Language
Contents
Description
Function related to serialisation of WConfD requests
- data LockRequestType
- = ReqExclusive
- | ReqShared
- | ReqRelease
- type GanetiLockRequest = [(GanetiLocks, LockRequestType)]
- toLockRequest :: (GanetiLocks, LockRequestType) -> LockRequest GanetiLocks
- fromGanetiLockRequest :: GanetiLockRequest -> [LockRequest GanetiLocks]
Serialisation related to locking
data LockRequestType Source
Operation to be carried out on a lock (request exclusive/shared ownership, or release).
Constructors
| ReqExclusive | |
| ReqShared | |
| ReqRelease |
Instances
| Eq LockRequestType | |
| Show LockRequestType | |
| JSON LockRequestType |
type GanetiLockRequest = [(GanetiLocks, LockRequestType)]Source
The type describing how lock update requests are passed over the wire.
fromGanetiLockRequest :: GanetiLockRequest -> [LockRequest GanetiLocks]Source
From a GanetiLockRequest obtain a list of Ganeti.Lock.Allocation.LockRequest, suitable to updateLocks.