(httpClient *http.Client, hostname, keyFile string, title string)
| 237 | } |
| 238 | |
| 239 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 240 | f, err := os.Open(keyFile) |
| 241 | if err != nil { |
| 242 | return false, err |
| 243 | } |
| 244 | defer f.Close() |
| 245 | |
| 246 | return add.SSHKeyUpload(httpClient, hostname, f, title) |
| 247 | } |
| 248 | |
| 249 | // GetCurrentLogin returns the login of the user the token belongs to. |
| 250 | // |
no test coverage detected