MCPcopy
hub / github.com/cloudfoundry/cli / NewCloudControllerCurlRepository

Function NewCloudControllerCurlRepository

cf/api/curl.go:29–33  ·  view source on GitHub ↗
(config coreconfig.Reader, gateway net.Gateway)

Source from the content-addressed store, hash-verified

27}
28
29func NewCloudControllerCurlRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerCurlRepository) {
30 repo.config = config
31 repo.gateway = gateway
32 return
33}
34
35func (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, "/"))

Callers 2

NewRepositoryLocatorFunction · 0.85
curl_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected