fn gateway_from_kvs(
prefix: &str,
kvs: Vec<(String, Vec<u8>)>,
) -> Result<GatewayConfig, String>Expand description
Assembles a GatewayConfig from the etcd key/value pairs under prefix.
Keys are <prefix>/{routes,policies,consumers,supernodes,plugin_configs,stores}/<name>; values
are the resource JSON. Unknown key shapes are skipped. Malformed resource
JSON is an error (so a bad write surfaces rather than silently dropping
config).