(guid, name string)
| 105 | } |
| 106 | |
| 107 | func (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error) { |
| 108 | path := fmt.Sprintf("/v2/service_brokers/%s", guid) |
| 109 | body := fmt.Sprintf(`{"name":"%s"}`, name) |
| 110 | return repo.gateway.UpdateResource(repo.config.APIEndpoint(), path, strings.NewReader(body)) |
| 111 | } |
| 112 | |
| 113 | func (repo CloudControllerServiceBrokerRepository) Delete(guid string) (apiErr error) { |
| 114 | path := fmt.Sprintf("/v2/service_brokers/%s", guid) |
nothing calls this directly
no test coverage detected