(name string)
| 88 | } |
| 89 | |
| 90 | func (actor Actor) DeleteOrganization(name string) (Warnings, error) { |
| 91 | var allWarnings Warnings |
| 92 | |
| 93 | org, warnings, err := actor.GetOrganizationByName(name) |
| 94 | allWarnings = append(allWarnings, warnings...) |
| 95 | if err != nil { |
| 96 | return allWarnings, err |
| 97 | } |
| 98 | |
| 99 | jobURL, deleteWarnings, err := actor.CloudControllerClient.DeleteOrganization(org.GUID) |
| 100 | allWarnings = append(allWarnings, Warnings(deleteWarnings)...) |
| 101 | if err != nil { |
| 102 | return allWarnings, err |
| 103 | } |
| 104 | |
| 105 | ccWarnings, err := actor.CloudControllerClient.PollJob(jobURL) |
| 106 | allWarnings = append(allWarnings, Warnings(ccWarnings)...) |
| 107 | |
| 108 | return allWarnings, err |
| 109 | } |
| 110 | |
| 111 | func (actor Actor) GetDefaultDomain(orgGUID string) (resources.Domain, Warnings, error) { |
| 112 | domain, warnings, err := actor.CloudControllerClient.GetDefaultDomain(orgGUID) |
nothing calls this directly
no test coverage detected