Integration defines the interface that all integrations must implement
| 8 | |
| 9 | // Integration defines the interface that all integrations must implement |
| 10 | type Integration interface { |
| 11 | // Name returns the integration name (e.g., "docker", "proxmox") |
| 12 | Name() string |
| 13 | |
| 14 | // IsAvailable checks if the integration is available on this system |
| 15 | IsAvailable() bool |
| 16 | |
| 17 | // Collect gathers data from the integration |
| 18 | Collect(ctx context.Context) (*models.IntegrationData, error) |
| 19 | |
| 20 | // Priority returns the collection priority (lower = higher priority) |
| 21 | // Used for future ordering of collection execution |
| 22 | Priority() int |
| 23 | |
| 24 | // SupportsRealtime indicates if this integration supports real-time monitoring |
| 25 | SupportsRealtime() bool |
| 26 | } |
| 27 | |
| 28 | // RealtimeIntegration extends Integration with real-time monitoring capabilities |
| 29 | type RealtimeIntegration interface { |
no outgoing calls
no test coverage detected