(scopes []string)
| 326 | } |
| 327 | |
| 328 | func scopesSentence(scopes []string) string { |
| 329 | quoted := make([]string, len(scopes)) |
| 330 | for i, s := range scopes { |
| 331 | quoted[i] = fmt.Sprintf("'%s'", s) |
| 332 | } |
| 333 | return strings.Join(quoted, ", ") |
| 334 | } |
| 335 | |
| 336 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 337 | f, err := os.Open(keyFile) |