(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions)
| 539 | } |
| 540 | |
| 541 | func newClient(url string, insecure bool, cabundle []byte, proxyOpts transport.ProxyOptions) (transport.Transport, *transport.Endpoint, error) { |
| 542 | ep, err := transport.NewEndpoint(url) |
| 543 | if err != nil { |
| 544 | return nil, nil, err |
| 545 | } |
| 546 | ep.InsecureSkipTLS = insecure |
| 547 | ep.CaBundle = cabundle |
| 548 | ep.Proxy = proxyOpts |
| 549 | |
| 550 | c, err := client.NewClient(ep) |
| 551 | if err != nil { |
| 552 | return nil, nil, err |
| 553 | } |
| 554 | |
| 555 | return c, ep, err |
| 556 | } |
| 557 | |
| 558 | func (r *Remote) fetchPack(ctx context.Context, o *FetchOptions, s transport.UploadPackSession, |
| 559 | req *packp.UploadPackRequest) (err error) { |
no test coverage detected