nats-io / nats.rs

Rust client for NATS, the cloud native messaging system.
Apache License 2.0
980 stars 159 forks source link

feat(KV): Add methods to get list of kv stores #1270

Open tinou98 opened 1 month ago

tinou98 commented 1 month ago

Expose 2 methods (key_value_store_names and key_value_stores) based on the existing streams & stream_names.

I added the option on stream & stream_names to filter the subject, but as a pub(crate) only. Maybe we should expose this publicly, but I don't know what the best API would be (stream_filtered or a Stream::subject like Purge::filter).

Jarema commented 4 weeks ago

As this is not part of the KV ADR it would need to accepted by the maintainers first.

Will get back here after its discussed.

Jarema commented 3 weeks ago

Hey. We agreed that this is a good idea. When ADR will be updated, review of this one will happen.

Thanks!