Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keys with filters #288

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Add keys with filters #288

merged 1 commit into from
Jun 20, 2024

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Jun 19, 2024

Signed-off-by: Tomasz Pietrek tomasz@nats.io

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
Copy link
Collaborator

@scottf scottf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// KeysWithFilter returns a filtered list of keys in the bucket.
// Historically this method returned a complete slice of all keys in the bucket,
// however clients should return interable result.
KeysWithFilter(filter string) ([]string, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am really against all these extra methods. Especially against adding both WithFilter and WithFilters versions of these methods, it's not needed at all.

Would be worth adding a watchopt like FilterKeys(keys ...string) (for go as this is go here), Keys() already take watchops.

@piotrpio piotrpio deleted the add-filters-to-kv-key-lister branch July 17, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants