GetOrganizationByGUID returns the organization with the given guid.
(orgGUID string)
| 23 | |
| 24 | // GetOrganizationByGUID returns the organization with the given guid. |
| 25 | func (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. |
| 35 | func (actor Actor) GetOrganizationByName(name string) (resources.Organization, Warnings, error) { |
no test coverage detected