Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ keyringServiceName
Function
keyringServiceName
internal/config/config.go:571–573 ·
view source on GitHub ↗
(hostname string)
Source
from the content-addressed store, hash-verified
569
}
570
571
func
keyringServiceName(hostname string) string {
572
return
"gh:"
+ hostname
573
}
574
575
type
AliasConfig
struct
{
576
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
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
Function · 0.70
preMigrationLogin
Function · 0.70
TestActiveTokenType
Function · 0.70
TokenFromKeyring
Method · 0.70
TokenFromKeyringForUser
Method · 0.70
Login
Method · 0.70
Calls
no outgoing calls
Tested by
9
TestTokenFromKeyring
Function · 0.56
TestTokenFromKeyringForUser
Function · 0.56
TestLoginSecureStorageUsesKeyring
Function · 0.56
TestLogoutRemovesHostAndKeyringToken
Function · 0.56
TestSwitchUserErrorsAndRestoresUserAndInsecureConfigUnderFailure
Function · 0.56
TestTokenPrioritizesActiveUserToken
Function · 0.56
TestTokenWithActiveUserNotInKeyringFallsBackToBlank
Function · 0.56
preMigrationLogin
Function · 0.56
TestActiveTokenType
Function · 0.56