mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
Adds `GetResource` helpers that leverage generics to return a slice of the expected resource type. This eliminates the need to use a `type.ListResourcesResponse` and then call `AsServers` to convert the `[]types.ResourceWithLabels` to `[]types.Server`. Only calls for `types.Server` have been converted. Other resources can be converted over time.