code: func (configFile *ConfigFile) GetAllCredentials() (map[string]types.AuthConfig, error) {
  	auths := make(map[string]types.AuthConfig)
  	addAll := func(from map[string]types.AuthConfig) {
  		for reg, ac := range from {
  			auths[reg] = ac
  		}
  	}
  
  	defaultStore := configFile.GetCredentialsStore("")
  	newAuths, err := defaultStore.GetAll()
  	if err != nil {
  		return nil, err
  	}
  	addAll(newAuths)
  
  	// Auth configs from a registry-specific helper should override those from the default store.
  	for registryHostname := range configFile.CredentialHelpers {
  		newAuth, err := configFile.GetAuthConfig(registryHostname)
  		if err != nil {
  			return nil, err
  		}
  		auths[registryHostname] = newAuth
  	}
  	return auths, nil
  }
docs: // GetAllCredentials returns all of the credentials stored in all of the
  // configured credential stores.