(req *http.Request)
| 92 | } |
| 93 | |
| 94 | func (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. |
| 109 | func NewClient(logCacheEndpoint string, config command.Config, ui command.UI, k8sConfigGetter v7action.KubernetesConfigGetter) (*logcache.Client, error) { |
nothing calls this directly
no test coverage detected