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

Instances details
Eq ConfigState # 
Instance details

Defined in Ganeti.WConfd.ConfigState

Methods

(==) :: ConfigState -> ConfigState -> Bool

(/=) :: ConfigState -> ConfigState -> Bool

Show ConfigState # 
Instance details

Defined in Ganeti.WConfd.ConfigState

Methods

showsPrec :: Int -> ConfigState -> ShowS

show :: ConfigState -> String

showList :: [ConfigState] -> ShowS

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.