GetRoleID returns the role ID from a resource name.
(name string)
| 428 | |
| 429 | // GetRoleID returns the role ID from a resource name. |
| 430 | func GetRoleID(name string) (string, error) { |
| 431 | tokens, err := GetNameParentTokens(name, RolePrefix) |
| 432 | if err != nil { |
| 433 | return "", err |
| 434 | } |
| 435 | return tokens[0], nil |
| 436 | } |
| 437 | |
| 438 | // GetProjectResourceIDSheetSha256 returns the project ID and sheet SHA256 from a resource name. |
| 439 | func GetProjectResourceIDSheetSha256(name string) (string, string, error) { |
no test coverage detected