{"modulePath":"github.com/GoCodeAlone/workflow-plugin-infra","version":"v1.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workflowplugininfra\n\nPackage workflowplugininfra provides the workflow-plugin-infra entry points.\n\nTwo complementary shapes coexist (ADR 0056 dual-shape):\n\n  - NewInfraPlugin() (internal.NewInfraPlugin) is the external gRPC/sdk sdk.PluginProvider — it serves infra.\\* module types and returns StepTypes() = nil (no sdk steps). UNCHANGED by this file.\n  - NewInfraEnginePlugin() (this file) is the in-process plugin.EnginePlugin. It exposes infra's first stepTypes — the four secret-admin steps — for in-process consumption (e.g., by ratchet, a modular app) WITHOUT spawning a gRPC subprocess.\n\nThe four secret-admin steps are written NATIVELY as plugin.StepFactory (in-process signature: Execute(ctx, \\*interfaces.PipelineContext) -\u003e \\*interfaces.StepResult). No reverse sdk→in-process bridge is required (unlike workflow-plugin-auth's pre-existing sdk steps, which were authored against the sdk signature and need wrapping).\n\n## Functions\n\n```go\nfunc NewInfraEnginePlugin() plugin.EnginePlugin\n```\nNewInfraEnginePlugin returns an in-process plugin.EnginePlugin that exposes infra's secret-admin steps natively (ADR 0056 dual-shape). The four steps are in-process-only: they are NOT declared in plugin.json capabilities.stepTypes (the gRPC binary does not serve them — declaring them would cause a verify-capabilities declared-vs-served mismatch). They are cataloged in the manifest description instead.\n\n## Types\n\n```go\ntype InfraEnginePlugin struct {\n\tplugin.BaseEnginePlugin\n}\n```\nInfraEnginePlugin is the in-process EnginePlugin entry for infra. It exposes the four secret-admin step types (step.secret\\_list, step.secret\\_delete, step.secret\\_vault\\_status, step.secret\\_vault\\_test) for in-process consumption. The gRPC path (NewInfraPlugin) is unchanged and serves no step types.\n\n```go\nfunc (p *InfraEnginePlugin) StepFactories() map[string]plugin.StepFactory\n```\nStepFactories returns the four secret-admin step factories as NATIVE in-process plugin.StepFactory values. Each factory's returned step implements interfaces.PipelineStep (Execute(ctx, \\*interfaces.PipelineContext)).\n\nplugin.StepFactory returns (any, error); the internal factories return (interfaces.PipelineStep, error). A thin closure widens the concrete return type to any (Go does not implicitly widen function return types).\n\n","path":"github.com/GoCodeAlone/workflow-plugin-infra","name":"workflowplugininfra","synopsis":"Package workflowplugininfra provides the workflow-plugin-infra entry points.","isRedistributable":true}
