(instanceGUID, appGUID string, paramsMap map[string]interface{})
| 31 | } |
| 32 | |
| 33 | func (repo CloudControllerServiceBindingRepository) Create(instanceGUID, appGUID string, paramsMap map[string]interface{}) error { |
| 34 | path := "/v2/service_bindings" |
| 35 | request := models.ServiceBindingRequest{ |
| 36 | AppGUID: appGUID, |
| 37 | ServiceInstanceGUID: instanceGUID, |
| 38 | Params: paramsMap, |
| 39 | } |
| 40 | |
| 41 | jsonBytes, err := json.Marshal(request) |
| 42 | if err != nil { |
| 43 | return err |
| 44 | } |
| 45 | |
| 46 | return repo.gateway.CreateResource(repo.config.APIEndpoint(), path, bytes.NewReader(jsonBytes)) |
| 47 | } |
| 48 | |
| 49 | func (repo CloudControllerServiceBindingRepository) Delete(instance models.ServiceInstance, appGUID string) (bool, error) { |
| 50 | var path string |
nothing calls this directly
no test coverage detected