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

Function GetOrgGUID

integration/helpers/org_and_space.go:101–105  ·  view source on GitHub ↗

GetOrgGUID gets the GUID of an org with the given name.

(orgName string)

Source from the content-addressed store, hash-verified

99
100// GetOrgGUID gets the GUID of an org with the given name.
101func GetOrgGUID(orgName string) string {
102 session := CF("org", "--guid", orgName)
103 Eventually(session).Should(Exit(0))
104 return strings.TrimSpace(string(session.Out.Contents()))
105}
106
107// GetSpaceGUID gets the GUID of a space with the given name.
108func GetSpaceGUID(spaceName string) string {

Callers 4

QuickDeleteOrgFunction · 0.85

Calls 1

CFFunction · 0.85

Tested by

no test coverage detected