Set stores a value in the keychain.
(account string, data []byte)
| 65 | |
| 66 | // Set stores a value in the keychain. |
| 67 | func (ks *KeychainStore) Set(account string, data []byte) error { |
| 68 | if ks.useNative() { |
| 69 | return ks.nativeSet(account, data) |
| 70 | } |
| 71 | return fmt.Errorf("keychain: file backend — use auth/crypto.go directly") |
| 72 | } |
| 73 | |
| 74 | // Delete removes a value from the keychain. |
| 75 | func (ks *KeychainStore) Delete(account string) error { |