Resource.WithPipelineStepFactory

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithPipelineStepFactory(
stepName string,
callback func(arg PipelineStepContext),
options ...*WithPipelineStepFactoryOptions,
) Resource

Signature

methodWithPipelineStepFactorybuilder
Adds a pipeline step to the resource that will be executed during deployment.
WithPipelineStepFactory(
stepName string,
callback func(arg PipelineStepContext),
options ...*WithPipelineStepFactoryOptions,
) Resource
stepNamestringThe unique name of the pipeline step.
callbackfunc(arg PipelineStepContext)callbackThe callback to execute when the step runs.
options...*WithPipelineStepFactoryOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithPipelineStepFactoryOptions argument.

DependsOn[]stringOptional step names that this step depends on.
RequiredBy[]stringOptional step names that require this step.
Tags[]stringOptional tags that categorize this step.
Description*stringAn optional human-readable description of the step.
Resource

The resource builder for chaining.

Returns a handle; failures surface later via Err().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: