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

Method callAPI

cf/api/users.go:269–279  ·  view source on GitHub ↗
(verb, path string, body io.ReadSeeker)

Source from the content-addressed store, hash-verified

267}
268
269func (repo CloudControllerUserRepository) callAPI(verb, path string, body io.ReadSeeker) (err error) {
270 request, err := repo.ccGateway.NewRequest(verb, path, repo.config.AccessToken(), body)
271 if err != nil {
272 return
273 }
274 _, err = repo.ccGateway.PerformRequest(request)
275 if err != nil {
276 return
277 }
278 return
279}
280
281func userGUIDPath(apiEndpoint, userGUID, orgGUID string, role models.Role) (string, error) {
282 rolePath, err := rolePath(role)

Callers 5

SetOrgRoleByGUIDMethod · 0.95
UnsetOrgRoleByGUIDMethod · 0.95
SetOrgRoleByUsernameMethod · 0.95

Calls 3

NewRequestMethod · 0.80
PerformRequestMethod · 0.80
AccessTokenMethod · 0.65

Tested by

no test coverage detected