code: func resolveAuthConfigFromImage(ctx context.Context, cli Cli, image string) (types.AuthConfig, error) {
  	registryRef, err := reference.ParseNormalizedNamed(image)
  	if err != nil {
  		return types.AuthConfig{}, err
  	}
  	repoInfo, err := registry.ParseRepositoryInfo(registryRef)
  	if err != nil {
  		return types.AuthConfig{}, err
  	}
  	return ResolveAuthConfig(ctx, cli, repoInfo.Index), nil
  }
docs: // resolveAuthConfigFromImage retrieves that AuthConfig using the image string