Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.WConfd.ConfigVerify
Description
Implementation of functions specific to configuration management.
Synopsis
- verifyConfig :: ConfigData -> ValidationMonad ()
- verifyConfigErr :: MonadError GanetiException m => ConfigData -> m ()
Documentation
verifyConfig :: ConfigData -> ValidationMonad () #
Checks consistency of a given configuration.
TODO: Currently this implements only some very basic checks. Evenually all checks from Python ConfigWriter need to be moved here (see issue #759).
verifyConfigErr :: MonadError GanetiException m => ConfigData -> m () #
Checks consistency of a given configuration.
If there is an error, throw ConfigVerifyError
.