(apiEndpoint, userGUID, orgGUID string, role models.Role)
| 279 | } |
| 280 | |
| 281 | func userGUIDPath(apiEndpoint, userGUID, orgGUID string, role models.Role) (string, error) { |
| 282 | rolePath, err := rolePath(role) |
| 283 | if err != nil { |
| 284 | return "", err |
| 285 | } |
| 286 | |
| 287 | return fmt.Sprintf("%s/v2/organizations/%s/%s/%s", apiEndpoint, orgGUID, rolePath, userGUID), nil |
| 288 | } |
| 289 | |
| 290 | func (repo CloudControllerUserRepository) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) error { |
| 291 | rolePath, found := spaceRoleToPathMap[role] |
no test coverage detected