How micoli/gocker works
Main Components Identification
The system can be broken down into these primary components:
a. Core Application Layer
• Main application entry point (gocker/__main__.py)
• Arguments handling (gocker/arguments.py)
• Process management (gocker/process.py)
• Threading utilities (gocker/threads.py)
b. GUI Layer
• Application UI (gocker/gui/app.py)
• Event bus system (gocker/gui/bus.py)
• Command handling (gocker/gui/commands.py)
• Action management (gocker/gui/actions.py)
c. Services Layer
• Docker Container Services
• File System Event Services
• Log Collector Services
• Subprocess Management Services
d. UI Components
• Container inspection
• Log viewing
• Container list
• Event list
• Services tree
• Shortcuts help
[User Interface Layer]
• GUI Components
• Container List
• Log Viewer
• Service Tree
• Container Inspector
• [Event Bus / Command Layer]
• Event Handler
• Command Processor
• Action Manager
• [Services Layer]
• Docker Services
• Container Management
• Metrics Collection
• Event Monitoring
• Log Services
• Docker Logs
• Filesystem Events
• Process Services
• Supervisor Integration
• PM2 Integration
• [Docker Socket]
• Host Docker Engine
Implementation Details to Note
• Use dependency injection patterns (shown in gui/dependency_injection.py)
• Data structures (circular_list.py, constrained_list.py)
• Relationship between services and their corresponding UI components