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

Function userGUIDPath

cf/api/users.go:281–288  ·  view source on GitHub ↗
(apiEndpoint, userGUID, orgGUID string, role models.Role)

Source from the content-addressed store, hash-verified

279}
280
281func 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
290func (repo CloudControllerUserRepository) SetSpaceRoleByGUID(userGUID, spaceGUID, orgGUID string, role models.Role) error {
291 rolePath, found := spaceRoleToPathMap[role]

Callers 2

SetOrgRoleByGUIDMethod · 0.85
UnsetOrgRoleByGUIDMethod · 0.85

Calls 1

rolePathFunction · 0.85

Tested by

no test coverage detected