Documentation
¶
Overview ¶
Package internal implements the workflow-plugin-infra external plugin, providing the plugin-owned infra.* module types (infra.http_redirect and infra.admin). The generic infra.* resource types are owned by the workflow engine (>= v0.80.17) via its NewInfraModuleFactory; this plugin no longer re-declares them.
Package internal contains the secret-admin pipeline steps.
step.secret_list / step.secret_delete / step.secret_vault_status / step.secret_vault_test are the first stepTypes owned by workflow-plugin-infra. They are written NATIVELY as in-process plugin.StepFactory (ADR 0056 dual-shape): Execute takes a *interfaces.PipelineContext and returns an *interfaces.StepResult directly — no reverse sdk bridge is required (unlike workflow-plugin-auth's existing sdk steps).
Each step resolves a secrets.Provider from the host application's service registry by the configured `module:` key. Built-in secrets modules (module/secrets_vault.go, module/secrets_aws.go) register themselves under their config `name` and expose the underlying provider via a Provider() accessor; this file mirrors the resolver-accessor pattern established by the engine's step.secret_set (module/pipeline_step_secret_set.go).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Version = "0.0.0"
Version is set at build time via -ldflags "-X github.com/GoCodeAlone/workflow-plugin-infra/internal.Version=X.Y.Z". Default is a bare semver so plugin loaders that validate semver accept unreleased dev builds; goreleaser overrides with the real release tag.
Functions ¶
func NewInfraPlugin ¶
func NewInfraPlugin() sdk.PluginProvider
NewInfraPlugin returns a new infraPlugin instance.
func NewSecretDeleteStepFactory ¶ added in v1.7.0
func NewSecretDeleteStepFactory() func(name string, config map[string]any, app modular.Application) (interfaces.PipelineStep, error)
NewSecretDeleteStepFactory returns a factory building step.secret_delete steps.
func NewSecretListStepFactory ¶ added in v1.7.0
func NewSecretListStepFactory() func(name string, config map[string]any, app modular.Application) (interfaces.PipelineStep, error)
NewSecretListStepFactory returns a factory building step.secret_list steps.
func NewSecretVaultStatusStepFactory ¶ added in v1.7.0
func NewSecretVaultStatusStepFactory() func(name string, config map[string]any, app modular.Application) (interfaces.PipelineStep, error)
NewSecretVaultStatusStepFactory returns a factory building step.secret_vault_status steps.
func NewSecretVaultTestStepFactory ¶ added in v1.7.0
func NewSecretVaultTestStepFactory() func(name string, config map[string]any, app modular.Application) (interfaces.PipelineStep, error)
NewSecretVaultTestStepFactory returns a factory building step.secret_vault_test steps.
Types ¶
This section is empty.