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

Function rolePath

cf/api/users.go:372–380  ·  view source on GitHub ↗
(role models.Role)

Source from the content-addressed store, hash-verified

370}
371
372func rolePath(role models.Role) (string, error) {
373 path, found := orgRoleToPathMap[role]
374
375 if !found {
376 return "", errors.New(T("Invalid Role {{.Role}}",
377 map[string]interface{}{"Role": role}))
378 }
379 return path, nil
380}
381
382func usernamePayload(username string) *strings.Reader {
383 return strings.NewReader(`{"username": "` + username + `"}`)

Callers 3

SetOrgRoleByUsernameMethod · 0.85
userGUIDPathFunction · 0.85

Calls 1

NewFunction · 0.92

Tested by

no test coverage detected