hunk.code_window: 	endpointURL := fmt.Sprintf("http://127.0.0.1:%d", tunnel.Port)
   	return client.NewClientWithOpts(
   		client.WithHost(endpointURL),
   		client.WithVersion(dockerClientVersion),
   		client.WithHTTPClient(httpCli),
   		client.WithHTTPHeaders(headers),
   	)
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit: 		client.WithAPIVersionNegotiation(),
  
hunk.file_path: api/docker/client/client.go
hunk.type: replace
file: package fdo
  
  func (handler *Handler) checkUniqueProfileName(name string, id int) (bool, error) {
  	profiles, err := handler.DataStore.FDOProfile().ReadAll()
  	if err != nil {
  		return false, err
  	}
  
  	for _, profile := range profiles {
  		if profile.Name == name && (id == -1 || id != int(profile.ID)) {
  			return false, nil
  		}
  	}
  
  	return true, nil
  }
  