pub fn register_instance( name: &str, mode: &str, config_path: &str, ) -> Result<(), InstanceError>
Register a running instance by writing its info to the registry directory.