code: func (i *ImageService) pullForBuilder(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, output io.Writer, platform *specs.Platform) (*image.Image, error) {
  	ref, err := reference.ParseNormalizedNamed(name)
  	if err != nil {
  		return nil, err
  	}
  	ref = reference.TagNameOnly(ref)
  
  	pullRegistryAuth := &types.AuthConfig{}
  	if len(authConfigs) > 0 {
  		// The request came with a full auth config, use it
  		repoInfo, err := i.registryService.ResolveRepository(ref)
  		if err != nil {
  			return nil, err
  		}
  
  		resolvedConfig := registry.ResolveAuthConfig(authConfigs, repoInfo.Index)
  		pullRegistryAuth = &resolvedConfig
  	}
  
  	if err := i.pullImageWithReference(ctx, ref, platform, nil, pullRegistryAuth, output); err != nil {
  		return nil, err
  	}
  	return i.GetImage(name)
  }
docs: // TODO: could this use the regular daemon PullImage ?