(httpClient *http.Client, hostname, keyFile string, title string)
| 341 | } |
| 342 | |
| 343 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 344 | f, err := os.Open(keyFile) |
| 345 | if err != nil { |
| 346 | return false, err |
| 347 | } |
| 348 | defer f.Close() |
| 349 | |
| 350 | return add.SSHKeyUpload(httpClient, hostname, f, title) |
| 351 | } |
| 352 | |
| 353 | // GetCurrentLogin returns the login of the user the token belongs to. |
| 354 | // |
no test coverage detected