# ContainerBuildOptionsCallbackContext

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Context for configuring container build options via a callback.

## Definition

```go
type ContainerBuildOptionsCallbackContext interface{}
```

## Properties

- `CancellationToken`: `*CancellationToken` `get` -- Gets the cancellation token.
- `Destination`: [`*ContainerImageDestination`](/reference/api/go/aspire.hosting/containerimagedestination.md) `get/set` -- Gets or sets the destination for the container image.
- `ExecutionContext`: [`DistributedApplicationExecutionContext`](/reference/api/go/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the distributed application execution context.
- `ImageFormat`: [`*ContainerImageFormat`](/reference/api/go/aspire.hosting/containerimageformat.md) `get/set` -- Gets or sets the container image format.
- `LocalImageName`: `*string` `get/set` -- Gets or sets the local image name for the built container.
- `LocalImageTag`: `*string` `get/set` -- Gets or sets the local image tag for the built container.
- `Logger`: [`Logger`](/reference/api/go/aspire.hosting/logger.md) `get` -- Gets the logger instance.
- `OutputPath`: `*string` `get/set` -- Gets or sets the output path for the container archive.
- `Resource`: [`Resource`](/reference/api/go/aspire.hosting/resource.md) `get` -- Gets the resource being built.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- Gets the service provider.
- `TargetPlatform`: [`*ContainerTargetPlatform`](/reference/api/go/aspire.hosting/containertargetplatform.md) `get/set` -- Gets or sets the target platform for the container.
