pub fn parse_rndc_conf_str(input: &str) -> ParseResult<RndcConfFile>Expand description
Parse rndc.conf from string
ยงExamples
use bindcar::rndc_conf_parser::parse_rndc_conf_str;
let conf_str = r#"
key "rndc-key" {
algorithm hmac-sha256;
secret "dGVzdC1zZWNyZXQ=";
};
"#;
let config = parse_rndc_conf_str(conf_str).unwrap();
assert_eq!(config.keys.len(), 1);