Skip to content

Commit

Permalink
Merge branch 'master' into tcsc/tctl-edit-aws-ic
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsc authored Feb 24, 2025
2 parents f88b50e + eadbe2d commit c7cbe41
Show file tree
Hide file tree
Showing 358 changed files with 17,115 additions and 4,288 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ linters-settings:
- '!**/lib/services/suite/**'
- '!**/lib/srv/mock.go'
- '!**/lib/srv/db/redis/test.go'
- '!**/lib/tbot/workloadidentity/workloadattest/podman/test_server.go'
- '!**/lib/teleterm/gatewaytest/**'
- '!**/lib/utils/testhelpers.go'
- '!**/lib/utils/testutils/**'
Expand Down Expand Up @@ -251,6 +252,7 @@ linters-settings:
- '!**/lib/services/suite/**'
- '!**/lib/srv/mock.go'
- '!**/lib/srv/db/redis/test.go'
- '!**/lib/tbot/workloadidentity/workloadattest/podman/test_server.go'
- '!**/lib/teleterm/gatewaytest/**'
- '!**/lib/utils/cli.go'
- '!**/lib/utils/testhelpers.go'
Expand Down
6 changes: 6 additions & 0 deletions api/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,12 @@ func (c *Client) WorkloadIdentityResourceServiceClient() workloadidentityv1pb.Wo
return workloadidentityv1pb.NewWorkloadIdentityResourceServiceClient(c.conn)
}

// WorkloadIdentityRevocationServiceClient returns an unadorned client for the
// workload identity revocation service.
func (c *Client) WorkloadIdentityRevocationServiceClient() workloadidentityv1pb.WorkloadIdentityRevocationServiceClient {
return workloadidentityv1pb.NewWorkloadIdentityRevocationServiceClient(c.conn)
}

// WorkloadIdentityIssuanceClient returns an unadorned client for the workload
// identity service.
func (c *Client) WorkloadIdentityIssuanceClient() workloadidentityv1pb.WorkloadIdentityIssuanceServiceClient {
Expand Down
17 changes: 2 additions & 15 deletions api/client/usertask/usertask.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,11 @@ func NewClient(grpcClient usertaskv1.UserTaskServiceClient) *Client {
}

// ListUserTasks returns a list of User Tasks.
func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string) ([]*usertaskv1.UserTask, string, error) {
func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string, filters *usertaskv1.ListUserTasksFilters) ([]*usertaskv1.UserTask, string, error) {
resp, err := c.grpcClient.ListUserTasks(ctx, &usertaskv1.ListUserTasksRequest{
PageSize: pageSize,
PageToken: nextToken,
})
if err != nil {
return nil, "", trace.Wrap(err)
}

return resp.UserTasks, resp.NextPageToken, nil
}

// ListUserTasksByIntegration returns a list of User Tasks filtered by an integration.
func (c *Client) ListUserTasksByIntegration(ctx context.Context, pageSize int64, nextToken string, integration string) ([]*usertaskv1.UserTask, string, error) {
resp, err := c.grpcClient.ListUserTasksByIntegration(ctx, &usertaskv1.ListUserTasksByIntegrationRequest{
PageSize: pageSize,
PageToken: nextToken,
Integration: integration,
Filters: filters,
})
if err != nil {
return nil, "", trace.Wrap(err)
Expand Down
22 changes: 18 additions & 4 deletions api/gen/proto/go/teleport/integration/v1/integration_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c7cbe41

Please sign in to comment.