View Source Testcontainers.KafkaContainer (testcontainers v1.11.6)
Provides functionality for creating and managing Kafka container configurations.
Summary
Functions
Creates a new KafkaContainer
struct with default configurations.
Overrides the default broker id used for the Kafka container.
Overrides the default kafka port used for the Kafka container.
Overrides the default zookeeper host used for the Kafka container. Available only when consensus_strategy is kraft
Overrides the default consensus strategy used for the Kafka container.
Overrides the default image used for the Kafka container. Right now we support only confluentinc images.
Overrides the default kafka port used for the Kafka container.
Set the reuse flag to reuse the container if it is already running.
Overrides the default topic
Overrides the default wait timeout used for the Kafka container.
Overrides the default zookeeper host used for the Kafka container. Available only when consensus_strategy is external
Overrides the default zookeeper port used for the Kafka container.
Functions
Creates a new KafkaContainer
struct with default configurations.
Overrides the default broker id used for the Kafka container.
Overrides the default kafka port used for the Kafka container.
Overrides the default zookeeper host used for the Kafka container. Available only when consensus_strategy is kraft
Overrides the default consensus strategy used for the Kafka container.
Overrides the default image used for the Kafka container. Right now we support only confluentinc images.
Overrides the default kafka port used for the Kafka container.
Set the reuse flag to reuse the container if it is already running.
Overrides the default topic
Overrides the default wait timeout used for the Kafka container.
Overrides the default zookeeper host used for the Kafka container. Available only when consensus_strategy is external
Overrides the default zookeeper port used for the Kafka container.