MCPcopy Index your code
hub / github.com/cloudfoundry/cli / listUsersWithPathWithNoUAA

Method listUsersWithPathWithNoUAA

cf/api/users.go:118–133  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

116}
117
118func (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
135func (repo CloudControllerUserRepository) updateOrFindUsersWithUAAPath(ccUsers []models.UserFields, path string) (updatedUsers []models.UserFields, apiErr error) {
136 uaaResponse := new(resources.UAAUserResources)

Calls 3

APIEndpointMethod · 0.65
ToFieldsMethod · 0.65

Tested by

no test coverage detected