unified-storage: use name instead of offset in kvstore continue token (#113560)

* unified-storage: use name instead of offset in kvstore continue token

---------

Co-authored-by: Georges Chaudy <chaudyg@gmail.com>
This commit is contained in:
Will Assis
2025-12-02 10:35:03 -05:00
committed by GitHub
co-authored by Georges Chaudy
parent bdf529c545
commit 047e6d45fa
11 changed files with 236 additions and 115 deletions
+10 -2
View File
@@ -6,10 +6,18 @@ import (
"fmt"
)
// ContinueToken represents a pagination token for list operations.
type ContinueToken struct {
StartOffset int64 `json:"o"`
// Namespace is the namespace to continue from. Only set for cross-namespace list queries.
Namespace string `json:"ns,omitempty"`
// Name is the name to continue from. Required for list resources, empty for list history.
Name string `json:"n,omitempty"`
// ResourceVersion is the resource version for pagination.
// For list resources: the RV the list was performed at.
// For list history: the last seen RV for pagination.
ResourceVersion int64 `json:"v"`
SortAscending bool `json:"s"`
// SortAscending indicates the sort order (used by list history).
SortAscending bool `json:"s,omitempty"`
}
func (c ContinueToken) String() string {