Documentation
¶
Index ¶
- func NewConfigManagerService(logger models.Logger, configManager models.ConfigManager) services.ConfigManagerService
- type ConfigManagerService
- func (s *ConfigManagerService) GetAuthSettings(ctx context.Context) (map[string]any, error)
- func (s *ConfigManagerService) GetConfig(ctx context.Context) (*models.Config, error)
- func (s *ConfigManagerService) GetPluginConfig(ctx context.Context, pluginName string) (any, error)
- func (s *ConfigManagerService) NotifyWatchers(config *models.Config) error
- func (s *ConfigManagerService) RegisterConfigWatcher(pluginID string, plugin models.PluginWithConfigWatcher) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigManagerService ¶
func NewConfigManagerService(logger models.Logger, configManager models.ConfigManager) services.ConfigManagerService
NewConfigManagerService creates a new API instance for the config manager plugin.
Types ¶
type ConfigManagerService ¶
type ConfigManagerService struct {
// contains filtered or unexported fields
}
ConfigManagerService implements the ConfigManagerAPI interface.
func (*ConfigManagerService) GetAuthSettings ¶
GetAuthSettings returns the current authentication settings.
func (*ConfigManagerService) GetPluginConfig ¶
GetPluginConfig retrieves the configuration for a specific plugin.
func (*ConfigManagerService) NotifyWatchers ¶
func (s *ConfigManagerService) NotifyWatchers(config *models.Config) error
NotifyWatchers calls OnConfigUpdate on all registered config watchers. If a watcher returns an error, it is logged but other watchers continue to be notified (fail-open).
func (*ConfigManagerService) RegisterConfigWatcher ¶
func (s *ConfigManagerService) RegisterConfigWatcher(pluginID string, plugin models.PluginWithConfigWatcher) error
RegisterConfigWatcher registers a plugin to receive config update notifications.
Click to show internal directories.
Click to hide internal directories.