Skip to main content

load

Function load 

Source
pub fn load(path: &Path) -> SafeResult<PushConfig>
Expand description

Parse a push configuration file (YAML or JSON).

Returns SafeError::InvalidVault when the file is malformed or when the pushes: top-level key is absent. The caller should convert the latter into an actionable operator message.