Method
nativeSet
(account string, data []byte)
Source from the content-addressed store, hash-verified
| 114 | } |
| 115 | |
| 116 | func (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 | |
| 127 | func (ks *KeychainStore) nativeDelete(account string) error { |
| 128 | switch runtime.GOOS { |
Tested by
no test coverage detected