MCPcopy
hub / github.com/PatchMon/PatchMon / Integration

Interface Integration

agent-source-code/internal/integrations/integration.go:10–26  ·  view source on GitHub ↗

Integration defines the interface that all integrations must implement

Source from the content-addressed store, hash-verified

8
9// Integration defines the interface that all integrations must implement
10type 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
29type RealtimeIntegration interface {

Callers 59

RegisterMethod · 0.65
DiscoverIntegrationsMethod · 0.65
CollectAllMethod · 0.65
GetIntegrationMethod · 0.65
installSSGFromGitHubMethod · 0.65
installSSGFromNightlyMethod · 0.65
RunScanWithOptionsMethod · 0.65
DiscoverIntegrationsMethod · 0.65
IsAvailableMethod · 0.65
CollectWithOptionsMethod · 0.65
remediateSingleRuleFunction · 0.65

Implementers 2

Integrationagent-source-code/internal/integration
Integrationagent-source-code/internal/integration

Calls

no outgoing calls

Tested by

no test coverage detected