code: func (c *Endpoint) ClientOpts() ([]client.Opt, error) {
  	var result []client.Opt
  	if c.Host != "" {
  		helper, err := connhelper.GetConnectionHelper(c.Host)
  		if err != nil {
  			return nil, err
  		}
  		if helper == nil {
  			tlsConfig, err := c.tlsConfig()
  			if err != nil {
  				return nil, err
  			}
  			result = append(result,
  				client.WithHost(c.Host),
  				withHTTPClient(tlsConfig),
  			)
  
  		} else {
  			httpClient := &http.Client{
  				// No tls
  				// No proxy
  				Transport: &http.Transport{
  					DialContext: helper.Dialer,
  				},
  			}
  			result = append(result,
  				client.WithHTTPClient(httpClient),
  				client.WithHost(helper.Host),
  				client.WithDialContext(helper.Dialer),
  			)
  		}
  	}
  
  	version := os.Getenv("DOCKER_API_VERSION")
  	if version != "" {
  		result = append(result, client.WithVersion(version))
  	}
  	return result, nil
  }
docs: // ClientOpts returns a slice of Client options to configure an API client with this endpoint