(keysPath string)
| 67 | } |
| 68 | |
| 69 | func Load(keysPath string) (pair *KeyPair, err error) { |
| 70 | privFile := PrivatePath(keysPath) |
| 71 | pair = &KeyPair{ |
| 72 | Path: keysPath, |
| 73 | PrivatePath: privFile, |
| 74 | PublicPath: privFile + ".pub", |
| 75 | } |
| 76 | return pair, pair.Load() |
| 77 | } |
| 78 | |
| 79 | func KeysExist(keysPath string) bool { |
| 80 | return fs.Exists(keysPath) && fs.Exists(PrivatePath(keysPath)) |
no test coverage detected