Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithImagePushOptions

Method
📦 Aspire.Hosting v17.0.0
func (IComputeResource) WithImagePushOptions(callback func(arg ContainerImagePushOptionsCallbackContext)) IComputeResource

Signature

methodWithImagePushOptionsbuilder
Adds an asynchronous callback to configure container image push options for the resource.
WithImagePushOptions(callback func(arg ContainerImagePushOptionsCallbackContext)) IComputeResource
callbackfunc(arg ContainerImagePushOptionsCallbackContext)callbackThe asynchronous callback to configure push options.
IComputeResource

The resource builder.

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

Applies to

This method applies to the following types: