code: func (i *Image) parseResponse(path string, result interface{}) error {
  	errors := make(map[string]error)
  
  	for _, ep := range i.endpoints {
  		err := i.parseResponseFromURL(fmt.Sprintf("%s://%s/%s", i.scheme, ep, path), result)
  		if err != nil {
  			errors[ep] = err
  			continue
  		}
  
  		return nil
  	}
  
  	return combineEndpointErrors(errors)
  }
docs: // parseJSONResponse takes a path and tries to get Docker API response from each
  // available Docker API endpoint. It tries to parse response as JSON and saves
  // the parsed version in the provided 'result' variable.