Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ keyringServiceName
Function
keyringServiceName
internal/config/config.go:746–748 ·
view source on GitHub ↗
(hostname string)
Source
from the content-addressed store, hash-verified
744
}
745
746
func
keyringServiceName(hostname string) string {
747
return
"gh:"
+ hostname
748
}
749
750
type
AliasConfig
struct
{
751
cfg *ghConfig.Config
Callers
15
TestTokenFromKeyring
Function · 0.70
TestTokenFromKeyringForUser
Function · 0.70
TestLoginSecureStorageUsesKeyring
Function · 0.70
TestLogoutRemovesHostAndKeyringToken
Function · 0.70
TestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
Function · 0.70
TestTokenPrioritizesActiveUserToken
Function · 0.70
TestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring
Function · 0.70
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
Function · 0.70
preMigrationLogin
Function · 0.70
TestActiveTokenType
Function · 0.70
TestTokenForUserResolution
Function · 0.70
TestSetActiveCredential
Function · 0.70
Calls
no outgoing calls
Tested by
15
TestTokenFromKeyring
Function · 0.56
TestTokenFromKeyringForUser
Function · 0.56
TestLoginSecureStorageUsesKeyring
Function · 0.56
TestLogoutRemovesHostAndKeyringToken
Function · 0.56
TestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
Function · 0.56
TestTokenPrioritizesActiveUserToken
Function · 0.56
TestActiveTokenPrefersPerUserConfigTokenOverUnkeyedKeyring
Function · 0.56
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
Function · 0.56
preMigrationLogin
Function · 0.56
TestActiveTokenType
Function · 0.56
TestTokenForUserResolution
Function · 0.56
TestSetActiveCredential
Function · 0.56