(config coreconfig.Reader, gateway net.Gateway)
| 27 | } |
| 28 | |
| 29 | func NewCloudControllerCurlRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerCurlRepository) { |
| 30 | repo.config = config |
| 31 | repo.gateway = gateway |
| 32 | return |
| 33 | } |
| 34 | |
| 35 | func (repo CloudControllerCurlRepository) Request(method, path, headerString, body string, failOnHTTPError bool) (resHeaders, resBody string, err error) { |
| 36 | url := fmt.Sprintf("%s/%s", repo.config.APIEndpoint(), strings.TrimLeft(path, "/")) |
no outgoing calls
no test coverage detected