Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ContainerBuildOptionsCallbackContext

Handle
📦 Aspire.Hosting v17.0.0

Context for configuring container build options via a callback.

type ContainerBuildOptionsCallbackContext interface{}

Properties

propertyCancellationToken*CancellationTokenget
Gets the cancellation token.
CancellationToken() (*CancellationToken, error)
propertyDestination*ContainerImageDestinationget · set
Gets or sets the destination for the container image.
Destination() (*ContainerImageDestination, error)
SetDestination(value *ContainerImageDestination) ContainerBuildOptionsCallbackContext
propertyExecutionContextDistributedApplicationExecutionContextget
Gets the distributed application execution context.
ExecutionContext() DistributedApplicationExecutionContext
propertyImageFormat*ContainerImageFormatget · set
Gets or sets the container image format.
ImageFormat() (*ContainerImageFormat, error)
SetImageFormat(value *ContainerImageFormat) ContainerBuildOptionsCallbackContext
propertyLocalImageName*stringget · set
Gets or sets the local image name for the built container.
LocalImageName() (*string, error)
SetLocalImageName(value *string) ContainerBuildOptionsCallbackContext
propertyLocalImageTag*stringget · set
Gets or sets the local image tag for the built container.
LocalImageTag() (*string, error)
SetLocalImageTag(value *string) ContainerBuildOptionsCallbackContext
propertyLoggerLoggerget
Gets the logger instance.
Logger() Logger
propertyOutputPath*stringget · set
Gets or sets the output path for the container archive.
OutputPath() (*string, error)
SetOutputPath(value *string) ContainerBuildOptionsCallbackContext
propertyResourceResourceget
Gets the resource being built.
Resource() Resource
propertyServicesServiceProviderget
Gets the service provider.
Services() ServiceProvider
propertyTargetPlatform*ContainerTargetPlatformget · set
Gets or sets the target platform for the container.
TargetPlatform() (*ContainerTargetPlatform, error)
SetTargetPlatform(value *ContainerTargetPlatform) ContainerBuildOptionsCallbackContext