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