ResourceWithEnvironment.WithEnvironmentCallback
Method
func (ResourceWithEnvironment) WithEnvironmentCallback(callback func(arg EnvironmentCallbackContext)) ResourceWithEnvironmentSignature
method
WithEnvironmentCallback builderAllows for the population of environment variables on a resource.
WithEnvironmentCallback(callback func(arg EnvironmentCallbackContext)) ResourceWithEnvironmentParameters
callbackfunc(arg EnvironmentCallbackContext) callbackA callback that allows for deferred execution for computing many environment variables. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.Returns
ResourceWithEnvironment The resource builder.
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: