| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Hiera.Server
Description
This module runs a Hiera server that caches Hiera data. There is a huge caveat : only the data files are watched for changes, not the main configuration file.
A minor bug is that interpolation will not work for inputs containing the % character when it isn't used for interpolation.
- startHiera :: FilePath -> IO (Either String (HieraQueryFunc IO))
- dummyHiera :: Monad m => HieraQueryFunc m
- type HieraQueryFunc m = Container Text -> Text -> HieraQueryType -> m (Either PrettyError (Pair InterpreterWriter (Maybe PValue)))
Documentation
startHiera :: FilePath -> IO (Either String (HieraQueryFunc IO)) Source
The only method you'll ever need. It runs a Hiera server and gives you
a querying function. The Nil output is explicitely given as a Maybe
type.
dummyHiera :: Monad m => HieraQueryFunc m Source
A dummy hiera function that will be used when hiera is not detected
type HieraQueryFunc m Source
Arguments
| = Container Text | All the variables that Hiera can interpolate, the top level ones being prefixed with :: |
| -> Text | The query |
| -> HieraQueryType | |
| -> m (Either PrettyError (Pair InterpreterWriter (Maybe PValue))) |
The type of the Hiera API function