Erase removes the given credentials from the native store.
(serverAddress string)
| 31 | |
| 32 | // Erase removes the given credentials from the native store. |
| 33 | func (c *nativeStore) Erase(serverAddress string) error { |
| 34 | if err := client.Erase(c.programFunc, serverAddress); err != nil { |
| 35 | return err |
| 36 | } |
| 37 | |
| 38 | // Fallback to plain text store to remove email |
| 39 | return c.fileStore.Erase(serverAddress) |
| 40 | } |
| 41 | |
| 42 | // Get retrieves credentials for a specific server from the native store. |
| 43 | func (c *nativeStore) Get(serverAddress string) (types.AuthConfig, error) { |