Skip to content

Commit

Permalink
Added KeysWithFilter methods to KV interface in kv.go file
Browse files Browse the repository at this point in the history
  • Loading branch information
Darshan174 committed Jun 20, 2024
1 parent 370bc4f commit 32215ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ type KeyValue interface {
PurgeDeletes(opts ...PurgeOpt) error
// Status retrieves the status and configuration of a bucket
Status() (KeyValueStatus, error)
// KeysWithFilter returns a filtered list of keys in the bucket.
KeysWithFilter(filter string) ([]string, error)
// KeysWithFilters returns a filtered list of keys in the bucket.
KeysWithFilters(filter []string) ([]string, error)
// And for the new, iterable API:
ListKeysWithFilter(filter string) (KeyLister, error)
ListKeysWithFilters(filter []string) (KeyLister, error)

}

// KeyValueStatus is run-time status about a Key-Value bucket
Expand Down

0 comments on commit 32215ca

Please sign in to comment.