-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roles: refactor to support Resources (#67)
To support roles at the resource level this refactors the sdk internals with a new `roleInfo` type. From which the data can be transformed by helper methods to be used by SAMS + integrations. Previously roles were registered + exposed from the `AllowedRoles` function. Registration has been split into an internal variable `registeredRoles` from which public functions such as `List`, `ByService`, `ByResourceType`, etc. derive different views of the data. ## Test plan CI
- Loading branch information
Showing
3 changed files
with
180 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters