MCPcopy Create free account
hub / github.com/diillson/chatcli / nativeSet

Method nativeSet

auth/keychain.go:116–125  ·  view source on GitHub ↗
(account string, data []byte)

Source from the content-addressed store, hash-verified

114}
115
116func (ks *KeychainStore) nativeSet(account string, data []byte) error {
117 switch runtime.GOOS {
118 case "darwin":
119 return ks.macSet(account, data)
120 case "linux":
121 return ks.linuxSet(account, data)
122 default:
123 return fmt.Errorf("native keychain not supported on %s", runtime.GOOS)
124 }
125}
126
127func (ks *KeychainStore) nativeDelete(account string) error {
128 switch runtime.GOOS {

Callers 1

SetMethod · 0.95

Calls 3

macSetMethod · 0.95
linuxSetMethod · 0.95
ErrorfMethod · 0.80

Tested by

no test coverage detected