ganeti

Safe HaskellNone

Ganeti.WConfd.ConfigState

Description

Pure functions for manipulating the configuration state.

Synopsis

Documentation

data ConfigState Source

In future this data type will include the current configuration (ConfigData) and the last FStat of its file.

Constructors

ConfigState 

Instances

mkConfigState :: ConfigData -> ConfigStateSource

Creates a new configuration state. This method will expand as more fields are added to ConfigState.

bumpSerial :: (SerialNoObjectL a, TimeStampObjectL a) => ClockTime -> a -> aSource

needsFullDist :: ConfigState -> ConfigState -> BoolSource

Given two versions of the configuration, determine if its distribution needs to be fully commited before returning the corresponding call to WConfD.