func NewRemoteRepository(baseURL string, debug, allowInsecure bool) Repository {
	var transport http.RoundTripper = &http.Transport{
		// Allow insecure and self-signed certificates if so configured
		TLSClientConfig: &tls.Config{InsecureSkipVerify: allowInsecure},
	}

	if debug {
		// Wrap transport in debug logging
		transport = httplogger.NewLoggedTransport(transport, internal.NewHTTPLogger())
	}

	return &remoteRepo{
		BaseURL: baseURL,
		client: &http.Client{
			Transport: transport,
		},
	}
}
// NewRemoteRepository creates new remote resolve repository
NewRemoteRepository creates new remote resolve repository
// NewRemoteRepository creates new remote resolve repository
func NewRemoteRepository(baseURL string, debug, allowInsecure bool) Repository {
	var transport http.RoundTripper = &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: allowInsecure},
	}
	if debug {
		transport = httplogger.NewLoggedTransport(transport, internal.NewHTTPLogger())
	}
	return &remoteRepo{
		BaseURL: baseURL,
		client: &http.Client{
			Transport: transport,
		},
	}
}
func NewRemoteRepository ( baseURL string , debug , allowInsecure bool ) Repository { var transport http . RoundTripper = & http . Transport { TLSClientConfig : & tls . Config { InsecureSkipVerify : allowInsecure } , } if debug { transport = httplogger . NewLoggedTransport ( transport , internal . NewHTTPLogger ( ) ) } return & remoteRepo { BaseURL : baseURL , client : & http . Client { Transport : transport , } , } }
NewRemoteRepository creates new remote resolve repository
NewRemoteRepository creates new remote resolve repository
// Allow insecure and self-signed certificates if so configured // Wrap transport in debug logging