ganeti
Safe HaskellNone

Ganeti.WConfd.Language

Description

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

Instances details
Eq LockRequestType # 
Instance details

Defined in Ganeti.WConfd.Language

Show LockRequestType # 
Instance details

Defined in Ganeti.WConfd.Language

Methods

showsPrec :: Int -> LockRequestType -> ShowS

show :: LockRequestType -> String

showList :: [LockRequestType] -> ShowS

JSON LockRequestType # 
Instance details

Defined in Ganeti.WConfd.Language

Methods

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.