configprovider

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 5 Imported by: 0

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 New

func New() *Plugin

New creates a new config provider plugin.

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:

  1. Finds config.provider modules in the config
  2. Parses their schema definitions
  3. Loads values from declared sources (defaults, env)
  4. Validates all required keys are present
  5. 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL