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

Method GetOrganizationByGUID

actor/v7action/organization.go:25–32  ·  view source on GitHub ↗

GetOrganizationByGUID returns the organization with the given guid.

(orgGUID string)

Source from the content-addressed store, hash-verified

23
24// GetOrganizationByGUID returns the organization with the given guid.
25func (actor Actor) GetOrganizationByGUID(orgGUID string) (resources.Organization, Warnings, error) {
26 ccOrg, warnings, err := actor.CloudControllerClient.GetOrganization(orgGUID)
27 if err != nil {
28 return resources.Organization{}, Warnings(warnings), err
29 }
30
31 return resources.Organization(ccOrg), Warnings(warnings), err
32}
33
34// GetOrganizationByName returns the organization with the given name.
35func (actor Actor) GetOrganizationByName(name string) (resources.Organization, Warnings, error) {

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Calls 3

OrganizationStruct · 0.92
WarningsTypeAlias · 0.70
GetOrganizationMethod · 0.65

Tested by

no test coverage detected