Documentation ¶
Index ¶
- func AuthFromSarama(config *sarama.Config) *client.KafkaAuthConfig
- func EnableSaramaLogging(enable bool)
- func LoadEventingKafkaSettings(configMap *corev1.ConfigMap) (*commonconfig.EventingKafkaConfig, error)
- func LoadSettings(ctx context.Context, clientId string, kafkaAuthConfig *client.KafkaAuthConfig) (*sarama.Config, *commonconfig.EventingKafkaConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthFromSarama ¶ added in v0.21.0
func AuthFromSarama(config *sarama.Config) *client.KafkaAuthConfig
AuthFromSarama creates a KafkaAuthConfig using the SASL settings from a given Sarama config, or nil if there is no SASL user in that config
func EnableSaramaLogging ¶
func EnableSaramaLogging(enable bool)
Utility Function For Enabling Sarama Logging (Debugging)
func LoadEventingKafkaSettings ¶
func LoadEventingKafkaSettings(configMap *corev1.ConfigMap) (*commonconfig.EventingKafkaConfig, error)
func LoadSettings ¶
func LoadSettings(ctx context.Context, clientId string, kafkaAuthConfig *client.KafkaAuthConfig) (*sarama.Config, *commonconfig.EventingKafkaConfig, error)
Load The Sarama & EventingKafka Configuration From The ConfigMap The Provided Context Must Have A Kubernetes Client Associated With It
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.