How 89luca89/lilipod works
Project Type and Core Components
a. Command Interface Layer
• Entry point (main.go)
• Command handlers (cmd/* files)
• Each command (pull, run, exec, etc.) as separate modules
b. Core Service Layer
• Container Management
• Image Management
• Process Management
• File System Operations
c. Utility Layer
• Logging
• Constants
• File Operations
• Process Utilities
Key Architectural Elements
a. Main Components:
┌─ Command Layer ─────┐ ┌─ Core Services ──────┐ ┌─ System Integration ─┐
• Container Ops │ │ - Container Utils │ │ - Host System │
• Image Ops ─┼───>│ - Image Utils ─┼───>│ - Namespaces │
• System Ops │ │ - Process Utils │ │ - File System │
• ┬─┘ └────────────┬─────────┘ └────────────────────┘
• ┌─ Utility Layer ──────┐
• >│ - Logging │
• File Utils │
• Constants │
• ┘
Important Flows to Highlight
a. Container Operations Flow:
• Command Input → Command Handler → Container Utils → System Integration
• Interaction with host system namespaces
• Rootless container creation process
b. Image Operations Flow:
• Image Pull → Registry Communication → Image Storage
• Layer management and storage
Technical Details
• Static binary nature
• Minimal dependency approach
• Command-line interface structure
• Container lifecycle management
• Image management system