Add getMetadata to the AdminClient
It seems like getMetadata should be available on the AdminClient. It would simplify managing topics from one client instance. The only other option is to spin up a producer or consumer client and use it's getMetadata method ( or the connect callback ) to see what topics exist , which seems to be a bit of a hack. I know the Go client has an AdminClient.getMetadata method. It would be nice to have it here too.
It seems librdkakfa doesn't provide metadata directly from the admin API but I agree it would totally make sense.
How it is done in Go: https://github.com/confluentinc/confluent-kafka-go/blob/cfbc1edb6a54515310a0c7840bf4a24159b51876/kafka/metadata.go#L81
I've never played with C++ bindings but I could give it a whirl. It's a bit tricky to translate to javascript since Go is using pointers.