Files
teleport/api/utils/clientutils
Luke OkraszewskiandChris Thach a3604b973f [clientutils] Add CollectWithFallback helper (#59582)
* [clientutils] Add CollectWithFallback helper

This helper is useful when migrating from non-paginated
to paginated resource getters. Internally it will use
auto page sizing for a given page getter and fall back
to unary getter when the remote does not support the new
RPC.

* Update api/utils/clientutils/resources_test.go

Co-authored-by: Chris Thach <chris.thach@protonmail.com>

* Update api/utils/clientutils/resources_test.go

Co-authored-by: Chris Thach <chris.thach@protonmail.com>

* Update api/utils/clientutils/resources_test.go

Co-authored-by: Chris Thach <chris.thach@protonmail.com>

---------

Co-authored-by: Chris Thach <chris.thach@protonmail.com>
2025-09-30 14:50:02 +00:00
..