Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.WConfd.ConfigState
Description
Pure functions for manipulating the configuration state.
Synopsis
- data ConfigState
- csConfigData :: ConfigState -> ConfigData
- csConfigDataL :: Iso' ConfigState ConfigData
- mkConfigState :: ConfigData -> ConfigState
- bumpSerial :: (SerialNoObjectL a, TimeStampObjectL a) => ClockTime -> a -> a
- needsFullDist :: ConfigState -> ConfigState -> Bool
Documentation
data ConfigState #
In future this data type will include the current configuration
(ConfigData
) and the last FStat
of its file.
Instances
Show ConfigState # | |
Defined in Ganeti.WConfd.ConfigState Methods showsPrec :: Int -> ConfigState -> ShowS show :: ConfigState -> String showList :: [ConfigState] -> ShowS | |
Eq ConfigState # | |
Defined in Ganeti.WConfd.ConfigState |
csConfigData :: ConfigState -> ConfigData #
csConfigDataL :: Iso' ConfigState ConfigData #
mkConfigState :: ConfigData -> ConfigState #
Creates a new configuration state.
This method will expand as more fields are added to ConfigState
.
bumpSerial :: (SerialNoObjectL a, TimeStampObjectL a) => ClockTime -> a -> a #
needsFullDist :: ConfigState -> ConfigState -> Bool #
Given two versions of the configuration, determine if its distribution needs to be fully committed before returning the corresponding call to WConfD.