(httpClient *http.Client, hostname, keyFile string, title string)
| 334 | } |
| 335 | |
| 336 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 337 | f, err := os.Open(keyFile) |
| 338 | if err != nil { |
| 339 | return false, err |
| 340 | } |
| 341 | defer f.Close() |
| 342 | |
| 343 | return add.SSHKeyUpload(httpClient, hostname, f, title) |
| 344 | } |
| 345 | |
| 346 | // GetCurrentLogin returns the login of the user the token belongs to. |
| 347 | // |
no test coverage detected