ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Instances

Instances details
Show LockRequestType # 
Instance details

Defined in Ganeti.WConfd.Language

Methods

showsPrec :: Int -> LockRequestType -> ShowS

show :: LockRequestType -> String

showList :: [LockRequestType] -> ShowS

Eq LockRequestType # 
Instance details

Defined in Ganeti.WConfd.Language

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)] #

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.