(scopes []string)
| 232 | } |
| 233 | |
| 234 | func scopesSentence(scopes []string) string { |
| 235 | quoted := make([]string, len(scopes)) |
| 236 | for i, s := range scopes { |
| 237 | quoted[i] = fmt.Sprintf("'%s'", s) |
| 238 | } |
| 239 | return strings.Join(quoted, ", ") |
| 240 | } |
| 241 | |
| 242 | func sshKeyUpload(httpClient *http.Client, hostname, keyFile string, title string) (bool, error) { |
| 243 | f, err := os.Open(keyFile) |