# CommunityToolkit.Aspire.Hosting.RedPanda

- Module: `CommunityToolkit.Aspire.Hosting.RedPanda`
- Version: `13.6.1`
- Import path: `apphost/modules/aspire`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)
- Functions: `6`
- Types: `3`

## Handles

- [RedPandaConsoleContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandaconsolecontainerresource.md) -- `handle` - 1 members -- A resource that represents a Redpanda Console container, a web UI for managing and inspecting one or more Redpanda (or Kafka) brokers.
- [RedPandaKafkaUiContainerResource](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandakafkauicontainerresource.md) -- `handle` - 0 members -- A resource that represents a Kafka UI container (the `kafbat/kafka-ui` image), a web UI for managing and inspecting one or more Kafka API compatible brokers such as Redpanda.
- [RedPandaServerResource](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/redpandaserverresource.md) -- `handle` - 11 members -- A resource that represents a Redpanda streaming platform container.

## Functions

- [AddRedPanda](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/addredpanda.md) -- `method` - on `DistributedApplicationBuilder` -- Adds a Redpanda container resource to the application. Redpanda is a Kafka API compatible streaming platform, so the resource can be referenced by any Kafka client integration.
- [WithHostPort](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/withhostport.md) -- `method` - on `RedPandaConsoleContainerResource` -- Configures the host port that the Redpanda Console resource is exposed on instead of using a randomly assigned port.
- [WithConsole](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/withconsole.md) -- `method` - on `RedPandaServerResource` -- Adds a Redpanda Console container to the application, configured to connect to the Redpanda broker.
- [WithDataBindMount](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/withdatabindmount.md) -- `method` - on `RedPandaServerResource` -- Adds a bind mount for the data folder to a Redpanda container resource.
- [WithDataVolume](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/withdatavolume.md) -- `method` - on `RedPandaServerResource` -- Adds a named volume for the data folder to a Redpanda container resource.
- [WithKafkaUI](/reference/api/go/communitytoolkit.aspire.hosting.redpanda/withkafkaui.md) -- `method` - on `RedPandaServerResource` -- Adds a Kafka UI container to the application, configured to connect to the Redpanda broker. This is the same Kafka management UI (the `kafbat/kafka-ui` image) used by the official Aspire Kafka integration, so it works against any Kafka API compatible broker.
