Safe Haskell | Safe-Infered |
---|
Implementation of Ganeti Lock field queries
The actual computation of the field values is done by forwarding the request; so only have a minimal field definition here.
- type RuntimeData = ([(ClientId, OwnerState)], [(ClientId, OwnerState)])
- getOwners :: RuntimeData -> a -> ResultEntry
- getMode :: RuntimeData -> a -> ResultEntry
- getPending :: RuntimeData -> a -> ResultEntry
- lockFields :: FieldList String RuntimeData
- fieldsMap :: FieldMap String RuntimeData
Documentation
type RuntimeData = ([(ClientId, OwnerState)], [(ClientId, OwnerState)])Source
The runtime information for locks. As all information about locks is handled by WConfD, the actual information is obtained as live data. The type represents the information for a single lock, even though all locks are queried simultaneously, ahead of time.
getOwners :: RuntimeData -> a -> ResultEntrySource
getMode :: RuntimeData -> a -> ResultEntrySource
getPending :: RuntimeData -> a -> ResultEntrySource
lockFields :: FieldList String RuntimeDataSource
fieldsMap :: FieldMap String RuntimeDataSource
The lock fields map.