(serviceBroker models.ServiceBroker)
| 96 | } |
| 97 | |
| 98 | func (repo CloudControllerServiceBrokerRepository) Update(serviceBroker models.ServiceBroker) (apiErr error) { |
| 99 | path := fmt.Sprintf("/v2/service_brokers/%s", serviceBroker.GUID) |
| 100 | body := fmt.Sprintf( |
| 101 | `{"broker_url":"%s","auth_username":"%s","auth_password":"%s"}`, |
| 102 | serviceBroker.URL, serviceBroker.Username, serviceBroker.Password, |
| 103 | ) |
| 104 | return repo.gateway.UpdateResource(repo.config.APIEndpoint(), path, strings.NewReader(body)) |
| 105 | } |
| 106 | |
| 107 | func (repo CloudControllerServiceBrokerRepository) Rename(guid, name string) (apiErr error) { |
| 108 | path := fmt.Sprintf("/v2/service_brokers/%s", guid) |
nothing calls this directly
no test coverage detected