Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

IComputeResource

Handle
📦 Aspire.Hosting v17.0.0
type IComputeResource interface{}

Methods

Configures the compute environment for the compute resource.
WithComputeEnvironment(computeEnvironmentResource ComputeEnvironmentResource) IComputeResource
computeEnvironmentResourceComputeEnvironmentResourceThe compute environment resource to associate with the compute resource.
IComputeResource

The resource builder.

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

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().

methodWithRemoteImageNamebuilder
Sets the remote image name (without registry endpoint or tag) for container push operations.
WithRemoteImageName(remoteImageName string) IComputeResource
remoteImageNamestringThe remote image name (e.g., "myapp" or "myorg/myapp").
IComputeResource

The resource builder.

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

methodWithRemoteImageTagbuilder
Sets the remote image tag for container push operations.
WithRemoteImageTag(remoteImageTag string) IComputeResource
remoteImageTagstringThe remote image tag (e.g., "latest", "v1.0.0").
IComputeResource

The resource builder.

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