(path string)
| 116 | } |
| 117 | |
| 118 | func (repo CloudControllerUserRepository) listUsersWithPathWithNoUAA(path string) (users []models.UserFields, apiErr error) { |
| 119 | apiErr = repo.ccGateway.ListPaginatedResources( |
| 120 | repo.config.APIEndpoint(), |
| 121 | path, |
| 122 | resources.UserResource{}, |
| 123 | func(resource interface{}) bool { |
| 124 | user := resource.(resources.UserResource).ToFields() |
| 125 | users = append(users, user) |
| 126 | return true |
| 127 | }) |
| 128 | if apiErr != nil { |
| 129 | return |
| 130 | } |
| 131 | |
| 132 | return |
| 133 | } |
| 134 | |
| 135 | func (repo CloudControllerUserRepository) updateOrFindUsersWithUAAPath(ccUsers []models.UserFields, path string) (updatedUsers []models.UserFields, apiErr error) { |
| 136 | uaaResponse := new(resources.UAAUserResources) |
no test coverage detected