ganeti

Safe HaskellNone

Ganeti.WConfd.Language

Contents

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
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.

fromGanetiLockRequest :: GanetiLockRequest -> [LockRequest GanetiLocks] Source #

From a GanetiLockRequest obtain a list of Ganeti.Lock.Allocation.LockRequest, suitable to updateLocks.