Skip to main content

Crate torrust_tracker_deployer_lib

Crate torrust_tracker_deployer_lib 

Source
Expand description

Torrust Tracker Deployer

Main library for torrust-tracker-deploy with complete DDD layer-based architecture.

§Architecture Layers

  • domain - Domain Layer: Pure business logic and domain models
    • template - Core template domain models and business logic
  • application - Application Layer: Use case orchestration and workflow coordination
    • commands - High-level deployment commands using Command pattern
    • steps - Workflow orchestration and business process steps
  • infrastructure - Infrastructure Layer: Technical capabilities and delivery mechanisms
    • executor - Low-level command execution utilities
    • adapters - External tool integration adapters (Ansible, LXD, OpenTofu, SSH)
    • remote_actions - Repository-like implementations for remote system operations
    • ansible - Ansible delivery mechanism and implementation details
    • tofu - OpenTofu delivery mechanism and implementation details
    • template - Template rendering delivery mechanisms (wrappers)
  • presentation - Presentation Layer: User-facing output and presentation concerns

§Other Modules

  • adapters - External tool adapters (thin CLI wrappers)
  • bootstrap - Application initialization and bootstrap concerns
  • config - Configuration management for deployment environments
  • shared - Shared modules used across different layers
  • testing - Testing utilities (unit, integration, and end-to-end)

Modules§

adapters
External Tool Adapters
application
Application Layer (DDD)
bootstrap
Bootstrap Module
config
Configuration management for deployment settings
domain
Domain Layer (DDD)
infrastructure
Infrastructure Layer (DDD)
presentation
Presentation Layer
shared
Shared modules used across different parts of the application
testing
Testing utilities and fixtures