(httpClient *http.Client, hostname, keyFile string, title string)
| 246 | } |
| 247 | |
| 248 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 249 | f, err := os.Open(keyFile) |
| 250 | if err != nil { |
| 251 | return false, err |
| 252 | } |
| 253 | defer f.Close() |
| 254 | |
| 255 | return add.SSHKeyUpload(httpClient, hostname, f, title) |
| 256 | } |
| 257 | |
| 258 | // GetCurrentLogin returns the login of the user the token belongs to. |
| 259 | // |
no test coverage detected