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

Function OrgFromGUID

util/lookuptable/resource_from_guid.go:5–11  ·  view source on GitHub ↗
(orgs []resources.Organization)

Source from the content-addressed store, hash-verified

3import "code.cloudfoundry.org/cli/v8/resources"
4
5func OrgFromGUID(orgs []resources.Organization) map[string]resources.Organization {
6 result := make(map[string]resources.Organization)
7 for _, org := range orgs {
8 result[org.GUID] = org
9 }
10 return result
11}
12
13func SpaceFromGUID(spaces []resources.Space) map[string]resources.Space {
14 result := make(map[string]resources.Space)

Callers 1

getSecurityGroupSpacesFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected