Storage: Add resource version matching in unified storage API (#102417)

Add NotOlderThan support to getHistory

Add support for Exact

Add tests

Refactor tests

Add error test

Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com>
This commit is contained in:
Marco de Abreu
2025-03-19 16:16:48 +01:00
committed by GitHub
parent e5b6b7b370
commit ce350df79b
5 changed files with 169 additions and 19 deletions

View File

@ -247,6 +247,8 @@ type sqlGetHistoryRequest struct {
Key *resource.ResourceKey
Trash bool // only deleted items
StartRV int64 // from NextPageToken
MinRV int64 // minimum resource version for NotOlderThan
ExactRV int64 // exact resource version for Exact
}
func (r sqlGetHistoryRequest) Validate() error {