fetch_ml/internal/api/plugins
Jeremie Fraeys 77542b7068
refactor: update API plugins version retrieval
Refactor getPluginVersion to accept PluginConfig parameter:
- Change signature from getPluginVersion(pluginName) to getPluginVersion(pluginName, cfg)
- Update all call sites to pass config
- Add TODO comment for future implementation querying actual plugin binary/container

Update plugin handlers to use dynamic version retrieval:
- GetV1Plugins: Use h.getPluginVersion(name, cfg) instead of hardcoded "1.0.0"
- PutV1PluginsPluginNameConfig: Pass newConfig to version retrieval
- GetV1PluginsPluginNameHealth: Use actual version from config

This prepares the API for dynamic version reporting while maintaining
backward compatibility with the current placeholder implementation.
2026-03-12 16:40:39 -04:00
..
handlers.go refactor: update API plugins version retrieval 2026-03-12 16:40:39 -04:00