stubprovider

package
v0.68.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stubprovider provides a build-tagged loadable EnginePlugin that registers an in-process "stub" iac.provider module. This plugin is intended for scenario testing and integration tests only — it must NOT be linked into production server binaries.

Loading is controlled by the "scenario_stub" build tag (see plugins/all/extras_stub.go). Without the tag, plugins/all.DefaultPlugins() does not include this plugin and cmd/server cannot load it.

The registered module type is "iac.provider". When a config entry declares:

type: iac.provider
config:
  provider: stub

the module's Init validates the provider field and logs a clear warning that no real cloud operations will occur. The module registers a stubprovider.Provider as a service under its own name so infra.admin can resolve it via app.GetService(<providerModuleName>, &iacProvider).

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 is the engine plugin that registers the stub iac.provider factory.

func New

func New() *Plugin

New creates a new stub provider plugin.

func (*Plugin) ModuleFactories

func (p *Plugin) ModuleFactories() map[string]plugin.ModuleFactory

ModuleFactories returns a factory for "iac.provider" that produces a stubModule whose ProvidesServices registers a stubprovider.Provider.

Jump to

Keyboard shortcuts

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