netweft 0.2.0

Deterministic network planning and configuration generation for portable infrastructure.
Documentation
//! Official adapters shipped with the Netweft CLI.

pub mod bind;
pub mod cloudflare;
pub mod docker;
pub mod env;
pub mod nas_permission;
pub mod netplan;
pub mod nginx;
pub mod proxmox;
pub mod proxmox_guest;
pub mod proxmox_sdn;
pub mod proxmox_storage;
pub mod ssh;
pub mod systemd_mount;

use anyhow::Result;

use crate::adapter::registry::AdapterRegistry;

/// Build the registry used by the reference CLI.
pub fn builtin_registry() -> Result<AdapterRegistry> {
    let mut registry = AdapterRegistry::new();
    registry.register(bind::BindAdapter)?;
    registry.register(cloudflare::CloudflareAdapter)?;
    registry.register(docker::DockerAdapter)?;
    registry.register(env::EnvironmentAdapter)?;
    registry.register(netplan::NetplanAdapter)?;
    registry.register(nginx::NginxAdapter)?;
    registry.register(proxmox::ProxmoxAdapter)?;
    registry.register(proxmox_guest::ProxmoxGuestAdapter)?;
    registry.register(proxmox_sdn::ProxmoxSdnAdapter)?;
    registry.register(systemd_mount::SystemdMountAdapter)?;
    registry.register(ssh::SshAdapter)?;
    registry.register(nas_permission::NasPermissionAdapter)?;
    registry.register(proxmox_storage::ProxmoxStorageAdapter)?;
    Ok(registry)
}