Documentation
¶
Overview ¶
Package configprovider registers the config.provider module type and its ConfigTransformHook. The hook runs before module registration to parse the config.provider schema, load values from declared sources, validate required keys, and expand {{config "key"}} references throughout the rest of the configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
plugin.BaseEnginePlugin
}
Plugin registers the config.provider module factory and a ConfigTransformHook that resolves {{config "key"}} references at config load time.
func (*Plugin) ConfigTransformHooks ¶
func (p *Plugin) ConfigTransformHooks() []plugin.ConfigTransformHook
ConfigTransformHooks returns a high-priority hook that processes config.provider modules before any other modules are registered. It:
- Finds config.provider modules in the config
- Parses their schema definitions
- Loads values from declared sources (defaults, env)
- Validates all required keys are present
- Expands {{config "key"}} references in all other module, workflow, trigger, and pipeline configs
func (*Plugin) ModuleFactories ¶
func (p *Plugin) ModuleFactories() map[string]plugin.ModuleFactory
ModuleFactories returns the config.provider module factory.