MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Do

Method Do

api/logcache/log_cache_client.go:94–106  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

92}
93
94func (c *httpDebugClient) Do(req *http.Request) (*http.Response, error) {
95 c.printer.PrintRequest(req)
96
97 resp, err := c.c.Do(req)
98 if err != nil {
99 c.printer.PrintError(err)
100 return nil, err
101 }
102
103 c.printer.PrintResponse(resp)
104
105 return resp, err
106}
107
108// NewClient returns back a configured Log Cache Client.
109func NewClient(logCacheEndpoint string, config command.Config, ui command.UI, k8sConfigGetter v7action.KubernetesConfigGetter) (*logcache.Client, error) {

Callers

nothing calls this directly

Calls 4

PrintRequestMethod · 0.80
PrintErrorMethod · 0.80
PrintResponseMethod · 0.80
DoMethod · 0.65

Tested by

no test coverage detected