(scopes []string)
| 333 | } |
| 334 | |
| 335 | func scopesSentence(scopes []string) string { |
| 336 | quoted := make([]string, len(scopes)) |
| 337 | for i, s := range scopes { |
| 338 | quoted[i] = fmt.Sprintf("'%s'", s) |
| 339 | } |
| 340 | return strings.Join(quoted, ", ") |
| 341 | } |
| 342 | |
| 343 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 344 | f, err := os.Open(keyFile) |