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