Documentation ¶
Index ¶
- func FindContainer(d *appsv1.Deployment, containerName string) *corev1.Container
- func NewConfigFromEnv(ctx context.Context) ([]string, *sarama.Config, error)
- func NewConfigWithEnv(ctx context.Context, env *KafkaEnvConfig) ([]string, *sarama.Config, error)
- func NewProducer(ctx context.Context) (sarama.Client, error)
- func TopicName() string
- type AdapterNet
- type AdapterSASL
- type AdapterTLS
- type KafkaConfig
- type KafkaEnvConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindContainer ¶
func FindContainer(d *appsv1.Deployment, containerName string) *corev1.Container
func NewConfigFromEnv ¶
NewConfig extracts the Kafka configuration from the environment.
func NewConfigWithEnv ¶
NewConfig extracts the Kafka configuration from the environment.
func NewProducer ¶
NewProducer is a helper method for constructing a client for producing kafka methods.
Types ¶
type AdapterNet ¶
type AdapterNet struct { SASL AdapterSASL TLS AdapterTLS }
type AdapterSASL ¶
type AdapterTLS ¶
type KafkaConfig ¶
type KafkaConfig struct {
SaramaYamlString string
}
type KafkaEnvConfig ¶
type KafkaEnvConfig struct { // KafkaConfigJson is the environment variable that's passed to adapter by the controller. // It contains configuration from the Kafka configmap. KafkaConfigJson string `envconfig:"K_KAFKA_CONFIG"` BootstrapServers []string `envconfig:"KAFKA_BOOTSTRAP_SERVERS" required:"true"` Net AdapterNet }
Click to show internal directories.
Click to hide internal directories.