Skip to content

Commit c7cbe41

Browse files
authored
Merge branch 'master' into tcsc/tctl-edit-aws-ic
2 parents f88b50e + eadbe2d commit c7cbe41

File tree

358 files changed

+17115
-4288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

358 files changed

+17115
-4288
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ linters-settings:
166166
- '!**/lib/services/suite/**'
167167
- '!**/lib/srv/mock.go'
168168
- '!**/lib/srv/db/redis/test.go'
169+
- '!**/lib/tbot/workloadidentity/workloadattest/podman/test_server.go'
169170
- '!**/lib/teleterm/gatewaytest/**'
170171
- '!**/lib/utils/testhelpers.go'
171172
- '!**/lib/utils/testutils/**'
@@ -251,6 +252,7 @@ linters-settings:
251252
- '!**/lib/services/suite/**'
252253
- '!**/lib/srv/mock.go'
253254
- '!**/lib/srv/db/redis/test.go'
255+
- '!**/lib/tbot/workloadidentity/workloadattest/podman/test_server.go'
254256
- '!**/lib/teleterm/gatewaytest/**'
255257
- '!**/lib/utils/cli.go'
256258
- '!**/lib/utils/testhelpers.go'

api/client/client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,12 @@ func (c *Client) WorkloadIdentityResourceServiceClient() workloadidentityv1pb.Wo
890890
return workloadidentityv1pb.NewWorkloadIdentityResourceServiceClient(c.conn)
891891
}
892892

893+
// WorkloadIdentityRevocationServiceClient returns an unadorned client for the
894+
// workload identity revocation service.
895+
func (c *Client) WorkloadIdentityRevocationServiceClient() workloadidentityv1pb.WorkloadIdentityRevocationServiceClient {
896+
return workloadidentityv1pb.NewWorkloadIdentityRevocationServiceClient(c.conn)
897+
}
898+
893899
// WorkloadIdentityIssuanceClient returns an unadorned client for the workload
894900
// identity service.
895901
func (c *Client) WorkloadIdentityIssuanceClient() workloadidentityv1pb.WorkloadIdentityIssuanceServiceClient {

api/client/usertask/usertask.go

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,11 @@ func NewClient(grpcClient usertaskv1.UserTaskServiceClient) *Client {
3535
}
3636

3737
// ListUserTasks returns a list of User Tasks.
38-
func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string) ([]*usertaskv1.UserTask, string, error) {
38+
func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string, filters *usertaskv1.ListUserTasksFilters) ([]*usertaskv1.UserTask, string, error) {
3939
resp, err := c.grpcClient.ListUserTasks(ctx, &usertaskv1.ListUserTasksRequest{
4040
PageSize: pageSize,
4141
PageToken: nextToken,
42-
})
43-
if err != nil {
44-
return nil, "", trace.Wrap(err)
45-
}
46-
47-
return resp.UserTasks, resp.NextPageToken, nil
48-
}
49-
50-
// ListUserTasksByIntegration returns a list of User Tasks filtered by an integration.
51-
func (c *Client) ListUserTasksByIntegration(ctx context.Context, pageSize int64, nextToken string, integration string) ([]*usertaskv1.UserTask, string, error) {
52-
resp, err := c.grpcClient.ListUserTasksByIntegration(ctx, &usertaskv1.ListUserTasksByIntegrationRequest{
53-
PageSize: pageSize,
54-
PageToken: nextToken,
55-
Integration: integration,
42+
Filters: filters,
5643
})
5744
if err != nil {
5845
return nil, "", trace.Wrap(err)

api/gen/proto/go/teleport/integration/v1/integration_service.pb.go

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

0 commit comments

Comments
 (0)