registry

package
v0.85.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 26 Imported by: 2 modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterScenario added in v0.85.0

func RegisterScenario(name string, fn pulumi.RunFunc)

RegisterScenario registers a scenario by name for use with the run binary. Call this from an init() function in a test package's scenario.go; the run binary blank-imports that package via scenarios_import_gen.go so the init() fires at startup. Regenerate scenarios_import_gen.go by running:

go generate ./test/new-e2e/run/

func Run added in v0.85.0

func Run()

Run is the shared Pulumi entry point for every scenario runner binary. A runner's main() is expected to be nothing more than a call to Run; the only thing that distinguishes one runner from another is the set of packages it blank-imports to populate the registry via RegisterScenario.

func ScenarioRunFunc added in v0.85.0

func ScenarioRunFunc() pulumi.RunFunc

ScenarioRunFunc resolves the scenario to run from the PULUMI_SCENARIO environment variable, overridden by the `scenario` stack config value, and dispatches to the matching registered scenario.

Types

type ScenarioRegistry

type ScenarioRegistry map[string]pulumi.RunFunc

func Scenarios

func Scenarios() ScenarioRegistry

func (ScenarioRegistry) Get

func (s ScenarioRegistry) Get(name string) pulumi.RunFunc

func (ScenarioRegistry) List

func (s ScenarioRegistry) List() []string

Jump to

Keyboard shortcuts

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