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