configprovider

package
v0.80.19 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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