Skip to content

Conversation

okraport
Copy link
Contributor

@okraport okraport commented Oct 17, 2025

This commits deperecates GetLocks, which should be replaced by a paginated counterpart:
ListLocks

Towards: gravitational/teleport.e/issues/6759
Changelog: Add paginated API ListLocks, deprecate GetLocks

@okraport okraport force-pushed the okraport/paginate-GetLocks branch from 014e221 to 8c5a3c2 Compare October 17, 2025 09:38
This commit moves the lock filter parameters to a
filter message in preparation for adding paginated
variants of GetLocks. The expected signature is:
```
ListLocks(context.Context, int, string, *types.LockFilter) ([]types.Lock, string, error)
RangeLocks(context.Context, string, string, *types.LockFilter) iter.Seq2[types.Lock, error]
```

The filter type is required in `e` to satisfy `LockGetter` hence
the new type is added first.
This commits deperecates GetLocks, which should be replaced by a paginated counterpart:
ListLocks

Towards: gravitational/teleport.e/issues/6759
Changelog: Add paginated API ListLocks, deprecate GetLocks
@okraport okraport force-pushed the okraport/paginate-GetLocks branch from 8c5a3c2 to 132ac44 Compare October 17, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant