mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 17:23:22 +00:00
Fix function reference from e (#33271)
This commit is contained in:
parent
d30c5fa646
commit
4f497c8134
|
@ -1820,6 +1820,11 @@ func GetResourceIDsByCluster(r types.AccessRequest) map[string][]types.ResourceI
|
|||
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 {
|
||||
|
|
Loading…
Reference in a new issue