Skip to content

Commit e6b4bd2

Browse files
authored
implement paginated requestable roles listing (#56695) (#57939) (#59235)
1 parent 17c0422 commit e6b4bd2

23 files changed

+2094
-1062
lines changed

api/client/client.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,16 @@ func (c *Client) ListRoles(ctx context.Context, req *proto.ListRolesRequest) (*p
18691869
return rsp, nil
18701870
}
18711871

1872+
// ListRequestableRoles is a paginated requestable role getter.
1873+
func (c *Client) ListRequestableRoles(ctx context.Context, req *proto.ListRequestableRolesRequest) (*proto.ListRequestableRolesResponse, error) {
1874+
rsp, err := c.grpc.ListRequestableRoles(ctx, req)
1875+
if err != nil {
1876+
return nil, trace.Wrap(err)
1877+
}
1878+
1879+
return rsp, nil
1880+
}
1881+
18721882
// CreateRole creates a new role.
18731883
func (c *Client) CreateRole(ctx context.Context, role types.Role) (types.Role, error) {
18741884
r, ok := role.(*types.RoleV6)

api/client/proto/authservice.pb.go

Lines changed: 1005 additions & 1003 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/client/proto/authservice_grpc.pb.go

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)