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

Function NewCloudControllerUserRepository

cf/api/users.go:64–69  ·  view source on GitHub ↗
(config coreconfig.Reader, uaaGateway net.Gateway, ccGateway net.Gateway)

Source from the content-addressed store, hash-verified

62}
63
64func NewCloudControllerUserRepository(config coreconfig.Reader, uaaGateway net.Gateway, ccGateway net.Gateway) (repo CloudControllerUserRepository) {
65 repo.config = config
66 repo.uaaGateway = uaaGateway
67 repo.ccGateway = ccGateway
68 return
69}
70
71func (repo CloudControllerUserRepository) FindByUsername(username string) (user models.UserFields, apiErr error) {
72 users, apiErr := repo.FindAllByUsername(username)

Callers 2

users_test.goFile · 0.92
NewRepositoryLocatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected