def resolve_authconfig(authconfig, registry=None):
 if ('credsStore' in authconfig):
  log.debug('Using credentials store "{0}"'.format(authconfig['credsStore']))
  return _resolve_authconfig_credstore(authconfig, registry, authconfig['credsStore'])
 registry = (resolve_index_name(registry) if registry else INDEX_NAME)
 log.debug('Looking for auth entry for {0}'.format(repr(registry)))
 if (registry in authconfig):
  log.debug('Found {0}'.format(repr(registry)))
  return authconfig[registry]
 for (key, config) in six.iteritems(authconfig):
  if (resolve_index_name(key) == registry):
   log.debug('Found {0}'.format(repr(key)))
   return config
 log.debug('No entry found')
 return None

def resolve_authconfig ( authconfig , registry = None ) : if ( 'credsStore' in authconfig ) : log . debug ( 'Using credentials store "{0}"' . format ( authconfig [ 'credsStore' ] ) ) return _resolve_authconfig_credstore ( authconfig , registry , authconfig [ 'credsStore' ] ) registry = ( resolve_index_name ( registry ) if registry else INDEX_NAME ) log . debug ( 'Looking for auth entry for {0}' . format ( repr ( registry ) ) ) if ( registry in authconfig ) : log . debug ( 'Found {0}' . format ( repr ( registry ) ) ) return authconfig [ registry ] for ( key , config ) in six . iteritems ( authconfig ) : if ( resolve_index_name ( key ) == registry ) : log . debug ( 'Found {0}' . format ( repr ( key ) ) ) return config log . debug ( 'No entry found' ) return None
returns the authentication data from the given auth configuration for a specific registry .