(url string, insecure bool, clientCert, clientKey, caBundle []byte, proxyOpts transport.ProxyOptions)
| 551 | } |
| 552 | |
| 553 | func newClient(url string, insecure bool, clientCert, clientKey, caBundle []byte, proxyOpts transport.ProxyOptions) (transport.Transport, *transport.Endpoint, error) { |
| 554 | ep, err := transport.NewEndpoint(url) |
| 555 | if err != nil { |
| 556 | return nil, nil, err |
| 557 | } |
| 558 | ep.InsecureSkipTLS = insecure |
| 559 | ep.ClientCert = clientCert |
| 560 | ep.ClientKey = clientKey |
| 561 | ep.CaBundle = caBundle |
| 562 | ep.Proxy = proxyOpts |
| 563 | |
| 564 | c, err := client.NewClient(ep) |
| 565 | if err != nil { |
| 566 | return nil, nil, err |
| 567 | } |
| 568 | |
| 569 | return c, ep, err |
| 570 | } |
| 571 | |
| 572 | func (r *Remote) fetchPack(ctx context.Context, o *FetchOptions, s transport.UploadPackSession, |
| 573 | req *packp.UploadPackRequest) (err error) { |
no test coverage detected
searching dependent graphs…