Skip to main content

Module normalize

Module normalize 

Source
Expand description

Validation and normalization: AppConfig -> ResolvedApp

ResolvedApp is a proof token: constructing one is only possible through normalize, so daemon code can require it and skip re-validation.

Structs§

ResolvedApp
A validated app config: only obtainable via normalize.

Enums§

NormalizeError
Error type returned from normalize and normalize_all
TildeError
Why expand_home_tilde refused a value, with no per-field context attached, for a caller that has none to give.

Functions§

expand_home_tilde
Expands a leading ~/ in value against home
normalize
Validates one app config
normalize_all
Validates a whole flock, rejecting duplicate sheep names
normalize_with_home
normalize, with the home directory supplied rather than read.