(auth *coreauth.Auth, providers ...string)
| 21 | } |
| 22 | |
| 23 | func (h *Host) newHTTPClient(auth *coreauth.Auth, providers ...string) pluginapi.HostHTTPClient { |
| 24 | provider := "" |
| 25 | if len(providers) > 0 { |
| 26 | provider = providers[0] |
| 27 | } |
| 28 | return &hostHTTPClient{host: h, auth: auth, provider: provider} |
| 29 | } |
| 30 | |
| 31 | func (c *hostHTTPClient) Do(ctx context.Context, req pluginapi.HTTPRequest) (pluginapi.HTTPResponse, error) { |
| 32 | if ctx == nil { |
no outgoing calls
no test coverage detected