Skip to content

Commit

Permalink
Remove unused access request functions (#45489)
Browse files Browse the repository at this point in the history
  • Loading branch information
atburke authored Aug 14, 2024
1 parent f5415e7 commit 54dd4bb
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/services/access_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -1959,21 +1959,6 @@ func (m *RequestValidator) roleAllowsResource(
return true, nil
}

// TODO(atburke): Remove this once teleport.e reference is switched over
func GetResourceDetails(ctx context.Context, clusterName string, lister client.ListResourcesClient, ids []types.ResourceID) (map[string]types.ResourceDetails, error) {
return accessrequest.GetResourceDetails(ctx, clusterName, lister, ids)
}

// TODO(atburke): Remove this once teleport.e reference is switched over
func GetResourceIDsByCluster(r types.AccessRequest) map[string][]types.ResourceID {
return accessrequest.GetResourceIDsByCluster(r)
}

// TODO(atburke): Remove this once teleport.e reference is switched over
func GetResourcesByResourceIDs(ctx context.Context, lister client.ListResourcesClient, resourceIDs []types.ResourceID, opts ...accessrequest.ListResourcesRequestOption) ([]types.ResourceWithLabels, error) {
return accessrequest.GetResourcesByResourceIDs(ctx, lister, resourceIDs, opts...)
}

// resourceMatcherToMatcherSlice returns the resourceMatcher in a RoleMatcher slice
// if the resourceMatcher is not nil, otherwise returns a nil slice.
func resourceMatcherToMatcherSlice(resourceMatcher *KubeResourcesMatcher) []RoleMatcher {
Expand Down

0 comments on commit 54dd4bb

Please sign in to comment.