Commit b8c59a7
[breaking] Remove indexes v2 endpoint (#838)
* remove indexes endpoint, since it's not used
run `goa gen github.com/arduino/arduino-create-agent/design`
* remove v2 index logic
* removed useless API level code
* factor out index handling of the index to a separate package
the `.arduino-create` dir is now created by the `index.Init()` func
* make the IndexReasource a pointer so that it can be shared
* pass the shared Index structure to the goa Server
* allow the tools endpoint to install and list available tools from default package_index.json only
and fix/adapt tests
* add test
* rename to Resource
* `go mod tidy`
* factor out index download logic
Co-authored-by: Alessio Perugini <alessioper.98@gmail.com>
* always download the index the first time
Co-authored-by: Alessio Perugini <alessioper.98@gmail.com>
* make pkgs.Tools struct properties unexported and use "constructor"
* make tools.Tools struct properties unexported and use a "constructor"
* increment delay for the test startup
---------
Co-authored-by: Alessio Perugini <alessioper.98@gmail.com>1 parent bf32bad commit b8c59a7
File tree
38 files changed
+393
-2782
lines changed- .licenses/arduino-create-agent/go/go.bug.st/downloader
- design
- gen
- http
- cli/arduino_create_agent
- indexes
- client
- server
- indexes
- views
- index
- tests
- tools
- v2
- pkgs
38 files changed
+393
-2782
lines changedLines changed: 0 additions & 44 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 20 | | |
56 | 21 | | |
57 | 22 | | |
| |||
95 | 60 | | |
96 | 61 | | |
97 | 62 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | 63 | | |
108 | 64 | | |
109 | 65 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
0 commit comments