// mirrorHostCredentials returns the HostCredentials, if any, for the hostname
// included in the mirror base URL.
//
// It might return an error if the mirror base URL is invalid, or if the
// credentials lookup itself fails.
mirrorHostCredentials returns the HostCredentials, if any, for the hostname
included in the mirror base URL.

It might return an error if the mirror base URL is invalid, or if the
credentials lookup itself fails.
// mirrorHostCredentials returns the HostCredentials if any for the hostname // included in the mirror base URL . // // It might return an error if the mirror base URL is invalid or if the // credentials lookup itself fails .
func (s *HTTPMirrorSource) mirrorHostCredentials() (svcauth.HostCredentials, error) {
	hostname, err := s.mirrorHost()
	if err != nil {
		return nil, fmt.Errorf("invalid provider mirror base URL %s: %s", s.baseURL.String(), err)
	}
	if s.creds == nil {
		return nil, nil
	}
	return s.creds.ForHost(hostname)
}
func ( s * HTTPMirrorSource ) mirrorHostCredentials ( ) ( svcauth . HostCredentials , error ) { hostname , err := s . mirrorHost ( ) if err != nil { return nil , fmt . Errorf ( " " , s . baseURL . String ( ) , err ) } if s . creds == nil { return nil , nil } return s . creds . ForHost ( hostname ) }
mirrorHostCredentials returns the HostCredentials, if any, for the hostname
included in the mirror base URL.
mirrorHostCredentials returns the HostCredentials if any for the hostname included in the mirror base URL .
// No host-specific credentials, then.