// HostCredentialsLocation returns a value indicating what type of storage is
// currently used for the credentials for the given hostname.
//
// The current location of credentials determines whether updates are possible
// at all and, if they are, where any updates will be written.
HostCredentialsLocation returns a value indicating what type of storage is
currently used for the credentials for the given hostname.

The current location of credentials determines whether updates are possible
at all and, if they are, where any updates will be written.
// HostCredentialsLocation returns a value indicating what type of storage is // currently used for the credentials for the given hostname . // // The current location of credentials determines whether updates are possible // at all and if they are where any updates will be written .
func (s *CredentialsSource) HostCredentialsLocation(host svchost.Hostname) CredentialsLocation {
	if _, unwritable := s.unwritable[host]; unwritable {
		return CredentialsInOtherFile
	}
	if _, exists := s.configured[host]; exists {
		return CredentialsInPrimaryFile
	}
	if s.helper != nil {
		return CredentialsViaHelper
	}
	return CredentialsNotAvailable
}
func ( s * CredentialsSource ) HostCredentialsLocation ( host svchost . Hostname ) CredentialsLocation { if _ , unwritable := s . unwritable [ host ] ; unwritable { return CredentialsInOtherFile } if _ , exists := s . configured [ host ] ; exists { return CredentialsInPrimaryFile } if s . helper != nil { return CredentialsViaHelper } return CredentialsNotAvailable }
HostCredentialsLocation returns a value indicating what type of storage is
currently used for the credentials for the given hostname.
HostCredentialsLocation returns a value indicating what type of storage is currently used for the credentials for the given hostname .