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