MCPcopy
hub / github.com/cloudfoundry/cli / PrintUsers

Method PrintUsers

cf/actors/userprint/plugin.go:70–78  ·  view source on GitHub ↗
(guid string, username string)

Source from the content-addressed store, hash-verified

68}
69
70func (p *pluginPrinter) PrintUsers(guid string, username string) {
71 for _, role := range p.roles {
72 users, _ := p.userLister(guid, role)
73 for _, user := range users {
74 p.users.storeAppendingRole(role, user.Username, user.GUID, user.IsAdmin)
75 }
76 }
77 p.printer(p.users.all())
78}
79
80func (coll userCollection) storeAppendingRole(role models.Role, username string, guid string, isAdmin bool) {
81 u := coll[username]

Callers

nothing calls this directly

Calls 3

storeAppendingRoleMethod · 0.80
allMethod · 0.80
printerMethod · 0.45

Tested by

no test coverage detected