You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to implement pagination in the GetList method.
When the user sends opts.Predicate.Limit true we will need to generate a continue token and limit the number of items we return.
If the user sends a continue token, we will need to parse it and return to the next page until there is nothing more to return.
We want to implement pagination in the
GetList
method.When the user sends
opts.Predicate.Limit
true we will need to generate a continue token and limit the number of items we return.If the user sends a continue token, we will need to parse it and return to the next page until there is nothing more to return.
Use https://github.com/kubernetes/apiserver/blob/master/pkg/storage/etcd3/store.go as a reference implementation.
Moreover, we will need to implement the list
resourceVersion
For instance, grafana uses snowflake IDs https://github.com/intergral/grafana/blob/2f390b310c1eec9d9cb7ee8459090d5dc19d3c02/pkg/apiserver/storage/file/file.go#L92
The text was updated successfully, but these errors were encountered: